Skip to content
Snippets Groups Projects
Commit a0b2c82c authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: Resource Settings who is allowed what

parent d905406d
No related branches found
No related tags found
No related merge requests found
......@@ -229,7 +229,9 @@ export default defineComponent({
}
},
isUserAllowedToEdit(): boolean {
if ((this.isOwner || this.isResourceCreator) && this.resourceForm) {
// Convoluted logic that prohibits a Guest&Creator edits, but allows Member&Creator edits. Setting it like so for the time being to manage the deadline.
// TODO: Proper Roles Matrix
if ((this.isOwner || (this.isResourceCreator && !this.isGuest)) && this.resourceForm) {
return true;
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment