(js) Fix error when deleting an ACL user

This commit is contained in:
Francis Lachapelle 2015-08-03 16:17:02 -04:00
parent 732b8c9d8a
commit ca8b64bd88

View file

@ -50,11 +50,7 @@
}
function removeUser(user) {
folder.$acl.$removeUser(user.uid).then(function() {
if (user.uid == vm.selectedUser.uid) {
vm.selectedUser = null;
}
}, function(data, status) {
folder.$acl.$removeUser(user.uid).catch(function(data, status) {
Dialog.alert(l('Warning'), l('An error occured please try again.'));
});
}