From 2f5374c5e9bc4de53b7d091c21d5081c4a6063ea Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 27 Mar 2024 13:42:20 +0100 Subject: [PATCH] Fix tests --- posthog/rbac/user_access_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/rbac/user_access_control.py b/posthog/rbac/user_access_control.py index ba10ca6c7c67b..a045dcc8fbee7 100644 --- a/posthog/rbac/user_access_control.py +++ b/posthog/rbac/user_access_control.py @@ -397,7 +397,7 @@ def user_access_control(self) -> UserAccessControl: return self.context["view"].user_access_control else: user = cast(User, self.context["request"].user) - return UserAccessControl(user, organization_id=user.current_organization_id) + return UserAccessControl(user, organization_id=str(user.current_organization_id)) def get_user_access_level(self, obj: Model) -> Optional[str]: return self.user_access_control.access_level_for_object(obj)