Skip to content

Commit

Permalink
fix: update org migration perm check (#28741)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield authored Feb 14, 2025
1 parent 408b2e3 commit dc97998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/admin/admins/organization_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def run_rbac_feature_flag_migration(self, request, organization_id):

def change_view(self, request, object_id, form_url="", extra_context=None):
extra_context = extra_context or {}
if not request.user.groups.filter(name="Billing Team").exists():
if request.user.groups.filter(name="Billing Team").exists():
extra_context["show_rbac_migration_buttons"] = True

return super().change_view(request, object_id, form_url, extra_context=extra_context)

0 comments on commit dc97998

Please sign in to comment.