1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

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

This commit is contained in:
William 2019-04-08 09:28:57 +12:00 committed by Anthony Lapenna
parent c39807e86c
commit e4a81df42e

View file

@ -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() {