-
Notifications
You must be signed in to change notification settings - Fork 20
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
IFC-739 Remove references to account role attribute #4990
Conversation
CodSpeed Performance ReportMerging #4990 will not alter performanceComparing Summary
|
d18e252
to
8359128
Compare
]: | ||
has_permission = False | ||
for permission_backend in registry.permission_backends: | ||
has_permission = await permission_backend.has_permission( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is a permission for ANY backend allowed or is it supposed to be ALL permission backends? either way, I think the current codes sets has_permission
the value of the last call to permission_backend.has_permission
, regardless of previous results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC we decided that only one backend should reply "permission granted" to allow a user to do something. That said in many places we implented it differently by checking every backends response. That's why I did this the same way, but I think we should have another PR to fix that behaviour across the whole code base.
8359128
to
234e55d
Compare
234e55d
to
686369d
Compare
No description provided.