mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 10:25:08 +00:00
(js) Respect super user creation privilege
This commit is contained in:
@@ -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