Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
product-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fluid Attacks
product-old
Commits
02cb0e92
Unverified
Commit
02cb0e92
authored
4 years ago
by
David Acevedo
Browse files
Options
Downloads
Patches
Plain Diff
fix(back):
#2197
.3 enforce lowercase group
parent
f42d6fdd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
django-apps/integrates-back-async/backend/authz/boundary.py
+1
-1
1 addition, 1 deletion
django-apps/integrates-back-async/backend/authz/boundary.py
test_async/authz_test/test_boundary.py
+1
-0
1 addition, 0 deletions
test_async/authz_test/test_boundary.py
with
2 additions
and
1 deletion
django-apps/integrates-back-async/backend/authz/boundary.py
+
1
−
1
View file @
02cb0e92
...
...
@@ -54,7 +54,7 @@ async def get_group_level_actions(subject: str, group: str) -> Set[str]:
action
for
role_definition
in
GROUP_LEVEL_ROLES
.
values
()
for
action
in
role_definition
[
'
actions
'
]
if
await
enforcer
(
subject
,
group
,
action
)
if
await
enforcer
(
subject
,
group
.
lower
()
,
action
)
]))
...
...
This diff is collapsed.
Click to expand it.
test_async/authz_test/test_boundary.py
+
1
−
0
View file @
02cb0e92
...
...
@@ -35,6 +35,7 @@ async def test_get_user_level_actions(email):
@pytest.mark.parametrize
(
[
'
email
'
,
'
group
'
],
[
[
'
continuoushacking@gmail.com
'
,
'
UnItTeStInG
'
],
[
'
continuoushacking@gmail.com
'
,
'
unittesting
'
],
[
'
continuoushacking@gmail.com
'
,
'
oneshottest
'
],
[
'
integratesuser@gmail.com
'
,
'
unittesting
'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment