fix(group-access): fix authorize/deny all buttons behavior (#2813)

pull/2818/head
William 2019-04-08 09:28:57 +12:00 committed by Anthony Lapenna
parent c39807e86c
commit e4a81df42e
1 changed files with 3 additions and 1 deletions

View File

@ -91,9 +91,11 @@ function (AccessService, Notifications) {
var access = source[i];
if (!access.Inherited) {
target.push(access);
source.splice(i, 1);
}
}
_.remove(source, function(e){
return !e.Inherited
});
}
ctrl.unauthorizeAllAccesses = function() {