1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

feat: metadata view permission (#6500)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-06 14:32:15 +08:00
committed by GitHub
parent fd12baeea1
commit 6d0713ef00
22 changed files with 121 additions and 63 deletions

View File

@@ -130,6 +130,11 @@ class Context {
return true;
};
canModifyView = (view) => {
if (this.permission === 'r') return false;
return true;
};
getCollaboratorFromCache(email) {
return this.collaboratorsCache[email];
}