[ckan-changes] [ckan/ckan] 3e1005: [#4097] Use c.useri to test if a user provided in ...
GitHub
noreply at github.com
Thu May 3 12:13:49 UTC 2018
Branch: refs/heads/4097-use-c-user-in-anon-check
Home: https://github.com/ckan/ckan
Commit: 3e100562806f61fb869d1d6523c62ff04b734781
https://github.com/ckan/ckan/commit/3e100562806f61fb869d1d6523c62ff04b734781
Author: amercader <amercadero at gmail.com>
Date: 2018-05-03 (Thu, 03 May 2018)
Changed paths:
M ckan/authz.py
Log Message:
-----------
[#4097] Use c.useri to test if a user provided in the default auth check
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.
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the ckan-changes
mailing list