| 1 | <?php namespace Anomaly\UsersModule\Http\Middleware; |
||
| 15 | class AuthorizeControlPanel |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The authorizer utility. |
||
| 20 | * |
||
| 21 | * @var Authorizer |
||
| 22 | */ |
||
| 23 | protected $authorizer; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new AuthorizeControlPanel instance. |
||
| 27 | * |
||
| 28 | * @param Authorizer $authorizer |
||
| 29 | */ |
||
| 30 | public function __construct(Authorizer $authorizer) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Check the authorization of module access. |
||
| 37 | * |
||
| 38 | * @param Request $request |
||
| 39 | * @param \Closure $next |
||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | public function handle(Request $request, Closure $next) |
||
| 54 | } |
||
| 55 |