| 1 | <?php namespace Anomaly\UsersModule\User\Command; |
||
| 16 | class CheckUserPermission implements SelfHandling |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The permission key. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $permission; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new CheckUserPermission instance. |
||
| 28 | * |
||
| 29 | * @param $permission |
||
| 30 | */ |
||
| 31 | public function __construct($permission) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Handle the command. |
||
| 38 | * |
||
| 39 | * @param Authorizer $authorizer |
||
| 40 | * @param Guard $guard |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function handle(Authorizer $authorizer, Guard $guard) |
||
| 52 | } |
||
| 53 |