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

Method canReadOwn

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

Source from the content-addressed store, hash-verified

1052 }
1053
1054 public static function canReadOwn(string $user, array $perms, string $folder): bool
1055 {
1056 if (self::canRead($user, $perms, $folder)) {
1057 return true;
1058 }
1059 return self::hasGrant($user, $folder, 'read_own');
1060 }
1061
1062 public static function canWrite(string $user, array $perms, string $folder): bool
1063 {

Callers 15

userHasAnyAccessMethod · 0.95
capabilitiesMethod · 0.80
enforceFolderScopeMethod · 0.80
getFolderColorsMethod · 0.80
enforceFolderScopeMethod · 0.80
copyFilesMethod · 0.80
moveFilesMethod · 0.80
canViewFolderMethod · 0.80
getPortalBySlugMethod · 0.80
hasReadableDescendantMethod · 0.80
opCopyFilesMethod · 0.80

Calls 2

canReadMethod · 0.95
hasGrantMethod · 0.95

Tested by

no test coverage detected