Browse files

fix user delete role(s)

  • Loading branch information...
1 parent 9a48872 commit 180a3ca7ee85bd2eb8ac4c093ee48c339ae5e034 @Zoddy committed Mar 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 user.js
View
4 user.js
@@ -144,8 +144,8 @@ user.prototype.deleteRole = function(name, role, callback) {
document.body(
'roles',
document.body('roles').filter(function(role) {
- return deleteRoles.some(function(deleteRole) {
- return (deleteRole !== role);
+ return !deleteRoles.some(function(deleteRole) {
+ return (deleteRole === role);
});
})
).save(function(error) {

0 comments on commit 180a3ca

Please sign in to comment.