Skip to content
Snippets Groups Projects
Unverified Commit 02cb0e92 authored by David Acevedo's avatar David Acevedo
Browse files

fix(back): #2197.3 enforce lowercase group

parent f42d6fdd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
]))
......
......@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment