mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 15:27:12 +00:00
(js) Respect super user creation privilege
This commit is contained in:
1 parent
c8634c8596
commit
819851bb92
3 files changed
+5
-2
No files matched your search
@@ -135,7 +135,9 @@
|
||||
}
|
||||
|
||||
if (writable) {
|
||||
return _.union(this.$calendars, _.filter(this.$subscriptions, function(calendar) { return calendar.acls.objectCreator; }));
|
||||
return _.union(this.$calendars, _.filter(this.$subscriptions, function(calendar) {
|
||||
return calendar.isOwned || calendar.acls.objectCreator;
|
||||
}));
|
||||
}
|
||||
|
||||
return _.union(this.$calendars, this.$subscriptions, this.$webcalendars);
|
||||
|
||||
Reference in new issue
Block a user