fix (acl): UI visibility issue for renaming

This commit is contained in:
MickaelK 2025-09-12 12:50:21 +10:00
parent cd40cbe479
commit 8adfa58ffe

View file

@ -17,7 +17,7 @@ export function calculatePermission(path, action) {
case "new-file": return toBool(perms$.value[path]["can_create_file"]); case "new-file": return toBool(perms$.value[path]["can_create_file"]);
case "new-folder": return toBool(perms$.value[path]["can_create_directory"]); case "new-folder": return toBool(perms$.value[path]["can_create_directory"]);
case "delete": return toBool(perms$.value[path]["can_delete"]); case "delete": return toBool(perms$.value[path]["can_delete"]);
case "rename": return toBool(perms$.value[path]["can_rename"]); case "rename": return toBool(perms$.value[path]["can_move"]);
case "upload": return toBool(perms$.value[path]["can_upload"]); case "upload": return toBool(perms$.value[path]["can_upload"]);
default: return false; default: return false;
} }