MCPcopy Create free account
hub / github.com/error311/FileRise / canRead

Method canRead

src/FileRise/Support/ACL.php:1044–1052  ·  view source on GitHub ↗
(string $user, array $perms, string $folder)

Source from the content-addressed store, hash-verified

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 {

Callers 15

canReadOwnMethod · 0.95
configMethod · 0.80
capabilitiesMethod · 0.80
enforceFolderScopeMethod · 0.80
getFolderListMethod · 0.80
getFolderColorsMethod · 0.80
enforceFolderScopeMethod · 0.80
copyFilesMethod · 0.80
deleteFilesMethod · 0.80
moveFilesMethod · 0.80
downloadFileMethod · 0.80

Calls 3

normalizeFolderMethod · 0.95
isAdminMethod · 0.95
hasGrantMethod · 0.95

Tested by

no test coverage detected