remove mostly dead comment

This commit is contained in:
Girish Ramakrishnan
2018-06-28 14:19:56 -07:00
parent dfa318e898
commit ff5bd42bef

View File

@@ -102,11 +102,6 @@ function get(req, res, next) {
function remove(req, res, next) {
assert.strictEqual(typeof req.params.userId, 'string');
// rules:
// - admin can remove any user
// - admin cannot remove admin
// - user cannot remove himself <- TODO should this actually work?
if (req.user.id === req.params.userId) return next(new HttpError(409, 'Not allowed to remove yourself.'));
users.remove(req.params.userId, auditSource(req), function (error) {