Skip to content
Snippets Groups Projects
Commit 804b2e0d authored by Aaron's avatar Aaron
Browse files

Fixed typo

parent 8a462752
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@ Meteor.methods
if not Meteor.userId()
throw new Meteor.Error('invalid-user', "[methods] deleteUser -> Invalid user")
user = Meteor.users.findOne userId()
user = Meteor.users.findOne userId
unless user?.admin is true
throw new Meteor.Error 'not-authorized', '[methods] deleteUser -> Not authorized'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment