Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervdw committed Nov 14, 2023
1 parent 92baa36 commit bcab895
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nens_auth_client/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def check_trusted_providers(app_configs=None, **kwargs):
trusted = set(settings.TRUSTED_PROVIDERS)
trusted_new = set(settings.TRUSTED_PROVIDERS_NEW_USERS)

if not trusted_new.issuperset(trusted):
if not trusted.issuperset(trusted_new):
return [
Error("TRUSTED_PROVIDERS must be a superset of TRUSTED_PROVIDERS_NEW_USERS")
]
Expand Down
1 change: 0 additions & 1 deletion nens_auth_client/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class NensAuthClientAppConf(AppConf):
RESOURCE_SERVER_ID = None # For Access Tokens ("aud" should equal this)

PERMISSION_BACKEND = "nens_auth_client.permissions.DjangoPermissionBackend"
AUTO_PERMISSIONS = {} # automatic permissions per provider

INVITATION_EMAIL_SUBJECT = "Invitation"
INVITATION_EXPIRY_DAYS = 14 # change this to change the default expiry
Expand Down
2 changes: 1 addition & 1 deletion nens_auth_client/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ def assign_permissions(permissions, user, **kwargs):
def auto_assign_permissions(user, claims):
backend = get_permission_backend()
if hasattr(backend, "auto_assign"):
backend.auto_assign(user, claims)
backend.auto_assign(user=user, claims=claims)

0 comments on commit bcab895

Please sign in to comment.