(js) Fix caching of user rights
This commit is contained in:
parent
d81a663fd1
commit
93de7b9ab3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue