public function authorize($permission)
    {
        $this->requiredPermissions[] = $permission instanceof IPermission
            ? $permission
            : Permission::named($permission);
    }
public function authorize($permission)
    {
        $this->requiredPermissions[] = $permission instanceof IPermission
            ? $permission
            : Permission::named($permission);
    }
public function authorize ( $ permission ) { $ this -> requiredPermissions [ ] = $ permission instanceof IPermission ? $ permission : Permission :: named ( $ permission ) ; }
Requires the supplied permission to access this module

@param IPermission|string $permission

@return void
Requires the supplied permission to access this module