(string $user, array $perms, string $folder)
| 1454 | } |
| 1455 | |
| 1456 | public static function canMove(string $user, array $perms, string $folder): bool |
| 1457 | { |
| 1458 | $folder = self::normalizeFolder($folder); |
| 1459 | if (self::isAdmin($perms)) { |
| 1460 | return true; |
| 1461 | } |
| 1462 | return self::ownsFolderOrAncestor($user, $perms, $folder); |
| 1463 | } |
| 1464 | |
| 1465 | public static function canMoveFolder(string $user, array $perms, string $folder): bool |
| 1466 | { |
no test coverage detected