Skip to content

Commit

Permalink
Fix: Missing auth
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone committed Nov 30, 2023
1 parent 1cb439a commit 2faeeb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions connect/common/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def create_service_status(sender, instance, created, **kwargs):
user_email=permission.user.email,
permission=permission.role
)
for authorization in instance.organization.authorizations.all():
if authorization.can_contribute:
project_auth = instance.get_user_authorization(authorization.user)
project_auth.role = authorization.role
project_auth.save()

elif update_fields and "flow_organization" in update_fields:
for permission in instance.project_authorizations.all():
Expand Down

0 comments on commit 2faeeb5

Please sign in to comment.