1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(access): fix an issue where an access would disappear (#1018)

This commit is contained in:
Anthony Lapenna 2017-07-12 14:13:51 +02:00 committed by GitHub
parent 0a436600f4
commit 780fec8e36

View file

@ -57,7 +57,7 @@ function (AccessService, Pagination, Notifications) {
function removeFromAccesses(access, accesses) {
_.remove(accesses, function(n) {
return n.Id === access.Id;
return n.Id === access.Id && n.Type === access.Type;
});
}