mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-26 23:39:33 +00:00
(js) Fix caching of user rights
This commit is contained in:
@@ -125,6 +125,7 @@
|
||||
return acls.then(function() {
|
||||
var i = _.indexOf(_.map(_this.users, 'uid'), uid);
|
||||
if (i >= 0) {
|
||||
_this.users[i].$shadowRights = null;
|
||||
_this.users.splice(i, 1);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
_this.rights[key] = 0;
|
||||
});
|
||||
}
|
||||
else {
|
||||
else if (this.$shadowRights) {
|
||||
// Restore initial rights
|
||||
this.rights = angular.copy(this.$shadowRights);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user