jqh hace 5 años
padre
commit
41923465bf
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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'));
     }