From: Nik Okuntseff Date: Mon, 2 Apr 2018 14:00:49 +0000 (+0000) Subject: Reusing a variable. X-Git-Tag: timetracker_1.19-1~887 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=aba62f48b2293cde4cc39123deb92bd7935dc76b;p=timetracker.git Reusing a variable. --- diff --git a/group_edit.php b/group_edit.php index 42fe3648..6ec572e9 100644 --- a/group_edit.php +++ b/group_edit.php @@ -213,7 +213,7 @@ if ($request->isPost()) { // Validate user input. if (!ttValidString($cl_team, true)) $err->add($i18n->get('error.field'), $i18n->get('label.group_name')); if (!ttValidString($cl_currency, true)) $err->add($i18n->get('error.field'), $i18n->get('label.currency')); - if ($user->can('manage_advanced_settings')) { + if ($advanced_settings) { if (!ttValidEmail($cl_bcc_email, true)) $err->add($i18n->get('error.field'), $i18n->get('label.bcc')); if (!ttValidIP($cl_allow_ip, true)) $err->add($i18n->get('error.field'), $i18n->get('form.profile.allow_ip')); }