(string $user, array $perms, string $folder)
| 1042 | } |
| 1043 | |
| 1044 | public static function canRead(string $user, array $perms, string $folder): bool |
| 1045 | { |
| 1046 | $folder = self::normalizeFolder($folder); |
| 1047 | if (self::isAdmin($perms)) { |
| 1048 | return true; |
| 1049 | } |
| 1050 | return self::hasGrant($user, $folder, 'owners') |
| 1051 | || self::hasGrant($user, $folder, 'read'); |
| 1052 | } |
| 1053 | |
| 1054 | public static function canReadOwn(string $user, array $perms, string $folder): bool |
| 1055 | { |
no test coverage detected