Last active
January 24, 2016 12:24
-
-
Save varavut/2f5c43158d874548918f to your computer and use it in GitHub Desktop.
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
if (Meteor.isServer) { | |
Threads.allow({ | |
remove: function (userId, doc) { | |
if(!userId) | |
throw new Meteor.Error('Unauthorized', 'Please login before perform an action'); | |
return result = doc.owner === userId; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment