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

[#4097] Use c.user to test if a user provided in the default auth check #4222

Closed
wants to merge 1 commit into from

Conversation

amercader
Copy link
Member

Up until now we only were checking if context['auth_user_obj'] was set, but that is not always the case, specially when using the auth_disallow_anonymous_access and auth_allow_anonymous_access decorators. This makes the check work as expected.

Fixes #4097
Fixes #4183

Up until now we only were checking if context['auth_user_obj'] was set,
but that is not always the case, specially when using the
auth_disallow_anonymous_access and auth_allow_anonymous_access
decorators. This makes the check work as expected.
@amercader amercader added the WIP label May 3, 2018
@amercader amercader self-assigned this May 3, 2018
@kmbn
Copy link
Contributor

kmbn commented Jan 22, 2019

We decided to close old pull requests that are not actively worked on so that we can focus our effort and attention on PRs made against the current version of CKAN. A lot has changed in the last several months and many PRs will have gone stale or may now be in conflict with the latest version.

Please note: this isn't a judgement about the quality of your pull request. We just don't have the resources to review older PRs.

If you would like to reopen your PR (and update it if necessary), please do!

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

Successfully merging this pull request may close these issues.

2 participants