mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
(js) Fix caching of user rights
This commit is contained in:
1 parent
d81a663fd1
commit
93de7b9ab3
2 files changed
+2
-1
No files matched your search
@@ -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