Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added checks to updateMessage and deleteMessage #621

Merged
merged 3 commits into from
Aug 29, 2015
Merged

Added checks to updateMessage and deleteMessage #621

merged 3 commits into from
Aug 29, 2015

Conversation

geekgonecrazy
Copy link
Contributor

Only two I could find that still needed it.

@geekgonecrazy geekgonecrazy deleted the permission-checks branch August 29, 2015 00:02
@geekgonecrazy geekgonecrazy restored the permission-checks branch August 29, 2015 00:03
@geekgonecrazy geekgonecrazy reopened this Aug 29, 2015
@geekgonecrazy
Copy link
Contributor Author

Oops.. deleted my remote before merge.


user = Meteor.users.findOne Meteor.userId()
unless user?.admin is true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only can delete admin users?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah my bad. Forgot this is an action being done only by the admin. Reverted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants