From aba62f48b2293cde4cc39123deb92bd7935dc76b Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 2 Apr 2018 14:00:49 +0000 Subject: [PATCH] Reusing a variable. --- group_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } -- 2.20.1