Skip to content

Commit

Permalink
Added admin flag to filtered user info sent to client
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Oct 9, 2012
1 parent 491fb5f commit 35f271c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ var filterUser = function(user) {
id: user._id.$oid,
email: user.email,
firstName: user.firstName,
lastName: user.lastName
lastName: user.lastName,
admin: user.admin
}
};
} else {
Expand Down

0 comments on commit 35f271c

Please sign in to comment.