]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Убираем правки другой ветки в Admin.php
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 8 Sep 2025 15:04:21 +0000 (18:04 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 8 Sep 2025 15:04:21 +0000 (18:04 +0300)
erp24/records/Admin.php

index 449b928761174fabe3db2d98bb72ed9ac6f347d5..a81b332268ed85cf48319a62daaf9a05b06c356c 100755 (executable)
@@ -89,8 +89,6 @@ class Admin extends ActiveRecord implements IdentityInterface
         72, //
     ];
 
-    const ADMIN_AGENT_FOR_EXCHANGE_NAME = 'agent';
-
     public $imageFile;
 
     private $store_arrArr;
@@ -734,12 +732,6 @@ class Admin extends ActiveRecord implements IdentityInterface
 //        $_SESSION['name_group_admin'] = "Пользователь";
     }
 
-    public static function getAdminAgentId() {
-        $id = Admin::find()->select('id')->where(['name' => self::ADMIN_AGENT_FOR_EXCHANGE_NAME])->scalar();
-        return $id;
-    }
-
-
     public function hasPermission($permission)
     {