Bladeren bron

删除员工

shish 3 jaren geleden
bovenliggende
commit
88197de5b3
2 gewijzigde bestanden met toevoegingen van 1 en 8 verwijderingen
  1. 0 7
      app-ghs/controllers/ShopAdminController.php
  2. 1 1
      biz/shop/classes/ShopAdminClass.php

+ 0 - 7
app-ghs/controllers/ShopAdminController.php

@@ -236,13 +236,6 @@ class ShopAdminController extends BaseController
     {
         $id = Yii::$app->request->get('id');
 
-        $shop = $this->shop;
-        $join = $shop->join ?? 0;
-        $default = $shop->default ?? 0;
-        if ($join == 0 && $default == 0) {
-            util::fail('当前直营分店,请切回总店操作');
-        }
-
         $shopAdmin = $this->shopAdmin;
         if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
             util::fail('没有权限');

+ 1 - 1
biz/shop/classes/ShopAdminClass.php

@@ -173,7 +173,7 @@ class ShopAdminClass extends BaseClass
     {
         $id = $relation->id ?? 0;
         if ($relation->founder == 2) {
-            util::fail("超管不能删除");
+            util::fail("创始人不能删除");
         }
         if ($id == $thisShopAdminId) {
             util::fail("不能删自己");