src/mako/gatekeeper/authorization/traits/AuthorizableTrait.php
public function can(string $action, $entity): bool
	{
		return $this->authorizer->can($this, $action, $entity);
	}
public function can(string $action, $entity): bool
	{
		return $this->authorizer->can($this, $action, $entity);
	}
public function can ( string $ action , $ entity ) : bool { return $ this -> authorizer -> can ( $ this , $ action , $ entity ) ; }
Returns true if allowed to perform the action on the entity and false if not.

@param  string        $action Action
@param  object|string $entity Entity
@return bool
Returns true if allowed to perform the action on the entity and false if not .