(js) Fix error when deleting an ACL user

pull/95/merge
Francis Lachapelle 2015-08-03 16:17:02 -04:00
parent 732b8c9d8a
commit ca8b64bd88
1 changed files with 1 additions and 5 deletions

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.'));
});
}