From fcef91666dc01301a08f272ebeaffc68628964d3 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 9 Sep 2024 14:33:14 +0300 Subject: [PATCH] =?utf8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?utf8?q?=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5?= =?utf8?q?=D0=BB=D1=8F=20=D0=B8=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=83=20?= =?utf8?q?=D0=B4=D0=BB=D1=8F=20=D1=84=D0=B8=D0=BD=D0=B4=D0=B8=D1=80=D0=B5?= =?utf8?q?=D0=BA=D1=82=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/MotivationController.php | 2 +- erp24/records/AdminGroup.php | 1 + erp24/records/Motivation.php | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/erp24/controllers/MotivationController.php b/erp24/controllers/MotivationController.php index f6d4adc0..2839c8f9 100644 --- a/erp24/controllers/MotivationController.php +++ b/erp24/controllers/MotivationController.php @@ -49,7 +49,7 @@ class MotivationController extends Controller $user = \Yii::$app->user->identity; // Проверяем group_id и ID пользователя - return $user->group_id == 81 || in_array($userId, [1, 1068, 1352, 1469]); + return $user->group_id == 81 || in_array($userId, [1, 1068, 1352, 1469, 1481]); }, ] ] diff --git a/erp24/records/AdminGroup.php b/erp24/records/AdminGroup.php index 2c59269f..e634b0e4 100755 --- a/erp24/records/AdminGroup.php +++ b/erp24/records/AdminGroup.php @@ -31,6 +31,7 @@ class AdminGroup extends ActiveRecord const GROUP_FLORIST_SUPPORT_NIGHT = 72; const GROUP_OPERATIONAL_DIRECTOR = 51; const GROUP_IT = 81; + const GROUP_FINANCE_DIRECTOR = 9; public static function getGroupsForEmployeeController() { return [ diff --git a/erp24/records/Motivation.php b/erp24/records/Motivation.php index 399fc071..3d486c75 100644 --- a/erp24/records/Motivation.php +++ b/erp24/records/Motivation.php @@ -100,7 +100,8 @@ class Motivation extends \yii\db\ActiveRecord return array( AdminGroup::GROUP_IT, AdminGroup::GROUP_OPERATIONAL_DIRECTOR, - AdminGroup::DIRECTOR + AdminGroup::DIRECTOR, + AdminGroup::GROUP_FINANCE_DIRECTOR ); } } -- 2.39.5