Horde_Perms_Base::hasPermission PHP Method

hasPermission() public method

Finds out if the user has the specified rights to the given object.
public hasPermission ( string $permission, string $user, integer $perm, string $creator = null ) : boolean
$permission string The permission to check.
$user string The user to check for.
$perm integer The permission level that needs to be checked for.
$creator string The creator of the event
return boolean Whether the user has the specified permissions.
    public function hasPermission($permission, $user, $perm, $creator = null)
    {
        return (bool) ($this->getPermissions($permission, $user, $creator) & $perm);
    }