Skip to content

Commit

Permalink
Update goosebit/auth/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
  • Loading branch information
b-rowan and easybe authored Aug 27, 2024
1 parent 222a412 commit 73d83b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goosebit/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def validate_user_permissions(


def compare_permissions(scopes: list[str] | None, permissions: set[str]) -> bool:
deny_permissions = [p.replace("!", "") for p in permissions if p.startswith("!")]
deny_permissions = list(map(lambda x: x.lstrip("!"), permissions))
allow_permissions = [p for p in permissions if not p.startswith("!")]
if scopes is None:
return True
Expand Down

0 comments on commit 73d83b7

Please sign in to comment.