Horde_Share_Base::getPermissions PHP Method

getPermissions() public method

Finds out what rights the given user has to this object.
See also: Horde_Perms::getPermissions
public getPermissions ( mixed $share, string $user = null ) : mixed
$share mixed The share that should be checked for the users permissions.
$user string The user to check for.
return mixed A bitmask of permissions, a permission value, or an array of permission values the user has, depending on the permission type and whether the permission value is ambiguous. False if there is no such permsission.
    public function getPermissions($share, $user = null)
    {
        if (!$share instanceof Horde_Share_Object) {
            $share = $this->getShare($share);
        }
        return $this->_permsObject->getPermissions($share->getPermission(), $user);
    }