dyjh 6 năm trước cách đây
mục cha
commit
e6d7b59cfa
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/Http/Controllers/Admin/Base/RoleController.php

+ 3 - 0
app/Http/Controllers/Admin/Base/RoleController.php

xqd
@@ -152,6 +152,9 @@ class RoleController extends Controller
      */
     public function destroy()
     {
+        if (Request::input('id') == 7) {
+            $this->showWarning("该权限为基础权限,不可删除");
+        }
         $bool = $this->_service->destroy(Request::input('id'));
         if($bool) {
             $this->showMessage('操作成功');