mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
(js) Respect super user creation privilege
This commit is contained in:
1
NEWS
1
NEWS
@@ -8,6 +8,7 @@ Bug fixes
|
||||
- [web] fixed missing columns in SELECT statements (PostgreSQL)
|
||||
- [web] fixed display of ghosts when dragging events
|
||||
- [web] fixed management of mail labels in Preferences module
|
||||
- [web] respect super user privileges to create in any calendar and addressbook
|
||||
|
||||
3.0.2 (2016-03-04)
|
||||
------------------
|
||||
|
||||
@@ -426,7 +426,7 @@
|
||||
</div>
|
||||
<md-button class="md-fab md-fab-bottom-right md-accent"
|
||||
label:aria-label="New Contact"
|
||||
ng-show="addressbook.selectedFolder.acls.objectCreator"
|
||||
ng-show="addressbook.selectedFolder.isOwned || addressbook.selectedFolder.acls.objectCreator"
|
||||
ng-click="addressbook.newComponent($event)">
|
||||
<md-icon>add</md-icon>
|
||||
</md-button>
|
||||
|
||||
@@ -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