shish пре 1 година
родитељ
комит
35c341ea92

+ 5 - 5
app-ghs/controllers/CheckOrderController.php

@@ -15,7 +15,7 @@ class CheckOrderController extends BaseController
     public function actionBookDelStock()
     {
         $staff = $this->shopAdmin;
-        if(isset($staff->identity) && $staff->identity == 2){
+        if (isset($staff->identity) && $staff->identity == 2) {
             util::fail('不能操作');
         }
 
@@ -52,7 +52,7 @@ class CheckOrderController extends BaseController
     public function actionBookAddStock()
     {
         $staff = $this->shopAdmin;
-        if(isset($staff->identity) && $staff->identity == 2){
+        if (isset($staff->identity) && $staff->identity == 2) {
             util::fail('不能操作');
         }
 
@@ -93,7 +93,7 @@ class CheckOrderController extends BaseController
     public function actionLoan()
     {
         $staff = $this->shopAdmin;
-        if(isset($staff->identity) && $staff->identity == 2){
+        if (isset($staff->identity) && $staff->identity == 2) {
             util::fail('不能操作');
         }
 
@@ -348,9 +348,9 @@ class CheckOrderController extends BaseController
 
         $mainId = $this->mainId;
         if (getenv('YII_ENV') == 'production') {
-            //源花汇小周可以清花材
+            //源花汇小周、小吴、小吕可以清花材
             if ($mainId == 10536) {
-                if (in_array($this->adminId, [11648])) {
+                if (in_array($this->adminId, [11648, 11961, 11976])) {
                     $could = true;
                 }
             }

+ 2 - 1
app-ghs/controllers/ShopController.php

@@ -145,7 +145,8 @@ class ShopController extends BaseController
         }
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
-            if ($this->adminId != 4) {
+            //花掌柜的小石,源花汇的小吕和小吴,没有财务权限也要能修改门店
+            if (!in_array($this->adminId, [4, 11961, 11976])) {
                 util::fail('没有修改门店权限');
             }
         }