Skip to content

Commit 3b28bbb

Browse files
fix: Remove from plan activated users when removing from org
1 parent 5e92d54 commit 3b28bbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/sync_teams.py

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def run_impl(self, db_session, ownerid, *, username=None, **kwargs):
5858
ownerid=ownerid,
5959
),
6060
)
61+
for org in removed_orgs:
62+
org.plan_activated_users.remove(ownerid)
6163

6264
owner.updatestamp = datetime.now()
6365
owner.organizations = team_ids

0 commit comments

Comments
 (0)