Bladeren bron

管理权限

shish 2 jaren geleden
bovenliggende
commit
8029bb0dab
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      app-ghs/controllers/ShopAdminController.php

+ 2 - 2
app-ghs/controllers/ShopAdminController.php

@@ -72,7 +72,7 @@ class ShopAdminController extends BaseController
             $name = $post['name'] ?? '';
             $finance = $post['finance'] ?? 0;
             $switchShop = $post['switchShop'] ?? 0;
-            if ($founder != 2 && $adminId != 4) {
+            if ($founder != 2 || $adminId != 4) {
                 if ($finance == 1) {
                     util::fail('超管才能开启员工财务权限');
                 }
@@ -243,7 +243,7 @@ class ShopAdminController extends BaseController
         $finance = $post['finance'] ?? 0;
         $switchShop = $post['switchShop'] ?? 0;
         $founder = $relation->founder ?? 1;
-        if ($founder != 2 && $adminId != 4) {
+        if ($founder != 2 || $adminId != 4) {
             if ($finance == 1) {
                 util::fail('超管才能修改财务权限');
             }