Added soft deletes to all deletion functions and added deleted_at filters as required
This commit is contained in:
@@ -819,9 +819,9 @@ def oidc_register():
|
||||
|
||||
org_id = data.get("organization_id")
|
||||
if org_id:
|
||||
organization = Organization.query.get(org_id)
|
||||
organization = Organization.query.filter_by(id=org_id, deleted_at=None).first()
|
||||
else:
|
||||
organization = Organization.query.filter_by(is_active=True).first()
|
||||
organization = Organization.query.filter_by(is_active=True, deleted_at=None).first()
|
||||
|
||||
if not organization:
|
||||
organization = Organization(
|
||||
|
||||
Reference in New Issue
Block a user