From f7ca1c6099cf82a6bce71e8176a9e3c206b9beda Mon Sep 17 00:00:00 2001 From: Zach Waterfield Date: Tue, 19 Nov 2024 13:48:16 -0800 Subject: [PATCH] Put back role permissions --- ee/api/rbac/role.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ee/api/rbac/role.py b/ee/api/rbac/role.py index 367092cf32e..325ab411c30 100644 --- a/ee/api/rbac/role.py +++ b/ee/api/rbac/role.py @@ -11,8 +11,6 @@ from posthog.api.routing import TeamAndOrgViewSetMixin from posthog.api.shared import UserBasicSerializer from posthog.models import OrganizationMembership from posthog.models.user import User -from posthog.constants import AvailableFeature -from posthog.permissions import PremiumFeaturePermission class RolePermissions(BasePermission): @@ -120,8 +118,7 @@ class RoleMembershipViewSet( viewsets.GenericViewSet, ): scope_object = "organization" - permission_classes = [RolePermissions, PremiumFeaturePermission] - premium_feature = AvailableFeature.ROLE_BASED_ACCESS + permission_classes = [RolePermissions] serializer_class = RoleMembershipSerializer queryset = RoleMembership.objects.select_related("role") filter_rewrite_rules = {"organization_id": "role__organization_id"}