From 7bd7259f8666d60c5a5bd348b1585d5c3d60c2c3 Mon Sep 17 00:00:00 2001 From: marina Date: Mon, 2 Dec 2024 13:31:58 +0300 Subject: [PATCH] =?utf8?q?=D0=B7=D0=B0=D0=BF=D1=80=D0=B5=D1=82=D0=B8=D1=82?= =?utf8?q?=D1=8C=20=D1=83=D0=B2=D0=BE=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=BC?= =?utf8?q?=20=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=D0=BC=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B8=D1=82=D1=8C?= =?utf8?q?=20=D0=B2=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/models/LoginForm.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erp24/models/LoginForm.php b/erp24/models/LoginForm.php index 64ab1ef1..e1a1c995 100644 --- a/erp24/models/LoginForm.php +++ b/erp24/models/LoginForm.php @@ -60,6 +60,11 @@ class LoginForm extends Model public function login() { $user = $this->getUser(); + + if ($user->group_id == AdminGroup::GROUP_FIRED) { + return false; + } + if ($this->validate() && $user) { $user->legacyFill(); return \Yii::$app->user->login($user, 3600 * 24 * 30); -- 2.39.5