| 1 | <?php namespace Arcanesoft\Core\Http\Middleware; |
||
| 12 | class CheckAdministrators |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Main Functions |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * Run the request filter. |
||
| 20 | * |
||
| 21 | * @param \Illuminate\Http\Request $request |
||
| 22 | * @param \Closure $next |
||
| 23 | * |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function handle(Request $request, Closure $next) |
||
| 37 | |||
| 38 | /* ------------------------------------------------------------------------------------------------ |
||
| 39 | | Other Functions |
||
| 40 | | ------------------------------------------------------------------------------------------------ |
||
| 41 | */ |
||
| 42 | /** |
||
| 43 | * Check if the user is allowed. |
||
| 44 | * |
||
| 45 | * @param \Arcanesoft\Contracts\Auth\Models\User $user |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | private function isAllowed($user) |
||
| 53 | } |
||
| 54 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.