diff --git a/src/plugin/admin/app/controller/RuleController.php b/src/plugin/admin/app/controller/RuleController.php index 85ac008..5015546 100644 --- a/src/plugin/admin/app/controller/RuleController.php +++ b/src/plugin/admin/app/controller/RuleController.php @@ -20,7 +20,7 @@ class RuleController extends Crud * * @var string[] */ - protected $noNeedAuth = ['get', 'auth']; + protected $noNeedAuth = ['get', 'permission']; /** * @var Rule @@ -92,7 +92,7 @@ class RuleController extends Crud * @param Request $request * @return Response */ - public function auth(Request $request): Response + public function permission(Request $request): Response { $rules = $this->getRules(admin('roles')); // 超级管理员 diff --git a/src/plugin/admin/app/controller/TableController.php b/src/plugin/admin/app/controller/TableController.php index 87b7648..d1c7424 100644 --- a/src/plugin/admin/app/controller/TableController.php +++ b/src/plugin/admin/app/controller/TableController.php @@ -783,7 +783,7 @@ EOF - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/src/plugin/admin/app/view/config/index.html b/src/plugin/admin/app/view/config/index.html index 3650b7a..f01c519 100644 --- a/src/plugin/admin/app/view/config/index.html +++ b/src/plugin/admin/app/view/config/index.html @@ -176,7 +176,7 @@ - + - + diff --git a/src/plugin/admin/app/view/dict/index.html b/src/plugin/admin/app/view/dict/index.html index 5fbf95d..1cae407 100644 --- a/src/plugin/admin/app/view/dict/index.html +++ b/src/plugin/admin/app/view/dict/index.html @@ -63,7 +63,7 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +