shish há 2 anos atrás
pai
commit
eb8293b303
1 ficheiros alterados com 2 adições e 4 exclusões
  1. 2 4
      app-ghs/controllers/ProductController.php

+ 2 - 4
app-ghs/controllers/ProductController.php

@@ -970,15 +970,13 @@ class ProductController extends BaseController
         $roleId = $shopAdmin['roleId'] ?? 0;
         $role = AdminRoleClass::getById($roleId);
         $roleName = $role['roleName'] ?? '';
-        if ($roleName == '员工') {
-            util::fail('没有权限操作');
-        }
+
 
         $id = $post['id'] ?? 0;
         $delStatus = $post['delStatus'] ?? 0;
         $product = ProductClass::getById($id, true);
         if ($product->mainId != $this->mainId) {
-            util::fail('没有权限操作');
+            util::fail('没有权限操作!!');
         }
         $product->delStatus = $delStatus;
         $product->save();