[doc] Update HueFileEntry js model permission logic
@@ -163,7 +163,8 @@ class HueFileEntry {
(perms.read.users.length > 0 ||
perms.read.groups.length > 0 ||
perms.write.users.length > 0 ||
- perms.write.groups.length > 0)
+ perms.write.groups.length > 0 ||
+ perms.link_sharing_on)
);
});
@@ -178,7 +179,8 @@ class HueFileEntry {
(perms.write.users.some(user => user.username === this.user) ||
perms.write.groups.some(
writeGroup => LOGGED_USERGROUPS.indexOf(writeGroup.name) !== -1
- )))
+ ) ||
+ (perms.link_sharing_on && perms.link_write)))
);
});
