jqh 5 years ago
parent
commit
41923465bf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Traits/HasAuthorization.php

+ 3 - 1
src/Traits/HasAuthorization.php

@@ -32,9 +32,11 @@ trait HasAuthorization
     }
 
     /**
+     * 返回无权限信息.
+     *
      * @return mixed
      */
-    protected function failedAuthorization()
+    public function failedAuthorization()
     {
         abort(403, __('admin.deny'));
     }