mirror of https://github.com/portainer/portainer
fix(group-access): fix authorize/deny all buttons behavior (#2813)
parent
c39807e86c
commit
e4a81df42e
|
@ -91,9 +91,11 @@ function (AccessService, Notifications) {
|
||||||
var access = source[i];
|
var access = source[i];
|
||||||
if (!access.Inherited) {
|
if (!access.Inherited) {
|
||||||
target.push(access);
|
target.push(access);
|
||||||
source.splice(i, 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_.remove(source, function(e){
|
||||||
|
return !e.Inherited
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrl.unauthorizeAllAccesses = function() {
|
ctrl.unauthorizeAllAccesses = function() {
|
||||||
|
|
Loading…
Reference in New Issue