dyjh hace 6 años
padre
commit
e6d7b59cfa
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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('操作成功');