src/Permissions/Privilege.php
public function isAllowed(Lock $lock, $action, Resource $resource = null)
    {
        return $this->resolve($lock, $action, $resource);
    }
public function isAllowed(Lock $lock, $action, Resource $resource = null)
    {
        return $this->resolve($lock, $action, $resource);
    }
public function isAllowed ( Lock $ lock , $ action , Resource $ resource = null ) { return $ this -> resolve ( $ lock , $ action , $ resource ) ; }
Validate a permission against the given params

@param \BeatSwitch\Lock\Lock $lock
@param string $action
@param \BeatSwitch\Lock\Resources\Resource|null $resource
@return bool
Validate a permission against the given params