(js) Fix error when deleting an ACL user
This commit is contained in:
parent
732b8c9d8a
commit
ca8b64bd88
|
@ -50,11 +50,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeUser(user) {
|
function removeUser(user) {
|
||||||
folder.$acl.$removeUser(user.uid).then(function() {
|
folder.$acl.$removeUser(user.uid).catch(function(data, status) {
|
||||||
if (user.uid == vm.selectedUser.uid) {
|
|
||||||
vm.selectedUser = null;
|
|
||||||
}
|
|
||||||
}, function(data, status) {
|
|
||||||
Dialog.alert(l('Warning'), l('An error occured please try again.'));
|
Dialog.alert(l('Warning'), l('An error occured please try again.'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue