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. |