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

Fix bugs and enable Custom Auth Check #16

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Data-Meister
Copy link

No description provided.

It was trying to access res.toUser when res was undefined, causing an exception. Now error callback is on its own logic branch.
The default auth check is same as before but it can now be overridden by the user. The method gets (fromUser, toUser) args - although toUser is not used by the default auth check it could be in specific apps. Also note: the auth check now runs *every time* impersonate is called, not only the first time like before, because the permissions might depend on toUser.
@Data-Meister
Copy link
Author

#9

This method is handy if you're not using Blaze (otherwise you can use template helpers)
@panphora
Copy link

panphora commented Dec 2, 2016

This is great! Thank you Data Meister!

@Data-Meister
Copy link
Author

You're welcome!

@Data-Meister
Copy link
Author

I added a couple more commits. Would you be happy to merge?

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.

2 participants