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

Changed check_access() to harden user references #282

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

Bartvaderkin
Copy link
Contributor

Modified it to use the same user reference to retrieve permissions as used earlier in the method to check authentication

Reason: using the context['user'] for the later check can break under certain conditions (ex. template-tags that customize context)

…missions as used earlier in the method to check authentication

Using the context['user'] for the later check can break under certain conditions (ex. template-tags that customize context)
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.176% when pulling a120bb0 on maykinmedia:fix/permission-user into 871ce7d on idlesign:master.

@idlesign idlesign merged commit caed6d2 into idlesign:master Jul 9, 2020
@idlesign
Copy link
Owner

idlesign commented Jul 9, 2020

Sorry for the delay.
Thank you. Merged.

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

Successfully merging this pull request may close these issues.

None yet

3 participants