Last active
August 29, 2015 14:10
-
-
Save devfoo-one/faa618f082aa64047912 to your computer and use it in GitHub Desktop.
Meteor: allow current user to delete his user account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.users.allow({ | |
remove: function (userId, doc) { | |
return doc._id === userId; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment