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

Access control failures are logged with WARN level (fixes #1074) #1149

Merged
merged 3 commits into from
Mar 9, 2017

Conversation

leplatrem
Copy link
Contributor

Fixes #1074

@leplatrem leplatrem requested a review from Natim March 9, 2017 10:26
@@ -319,7 +319,7 @@ def prefixed_principals(request):
principals = [p for p in principals if p != userid]

if request.prefixed_userid not in principals:
principals.append(request.prefixed_userid)
principals = [request.prefixed_userid] + principals
Copy link
Member

Choose a reason for hiding this comment

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

nit: principals = [request.prefixed_userid].extend(principals)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

humm bof :)

>>> l = [1].extend([2])
>>> l is None
True

@leplatrem leplatrem merged commit 544471a into master Mar 9, 2017
@leplatrem leplatrem deleted the 1074-log-acl-failures branch March 9, 2017 13:46
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