fix org invite tests

This commit is contained in:
Kenneth Kehl
2025-09-09 08:24:33 -07:00
parent a85a540abd
commit 3d7aee19d2
3 changed files with 16 additions and 14 deletions

View File

@@ -259,7 +259,7 @@ class User(JSONModel, UserMixin):
# TODO this is sketch! Fix this!
# This is temporary to restore org invite functionality only
self.add_to_organization(org_id)
# self.add_to_organization(org_id)
value = self.belongs_to_organization(org_id)
current_app.logger.debug(
f"has_permissions returns org: {org_id} returning {value}"
@@ -326,8 +326,8 @@ class User(JSONModel, UserMixin):
# TODO this is sketch! Fix this!
# This is temporary to restore org invite functionality only
if str(organization_id) not in self.organization_ids:
self.add_to_organization(organization_id)
# if str(organization_id) not in self.organization_ids:
# self.add_to_organization(organization_id)
return str(organization_id) in self.organization_ids
@property