dyjh 6 年之前
父節點
當前提交
e6d7b59cfa
共有 1 個文件被更改,包括 3 次插入0 次删除
  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('操作成功');