Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Mar 27, 2024
1 parent aefa59e commit 2f5374c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/rbac/user_access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2f5374c

Please sign in to comment.