|
|
@@ -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();
|