Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update org migration perm check #28741

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

zlwaterfield
Copy link
Contributor

Problem

Check is backwards.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@zlwaterfield zlwaterfield marked this pull request as ready for review February 14, 2025 17:55
@zlwaterfield zlwaterfield enabled auto-merge (squash) February 14, 2025 17:55
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Fixed a logical error in the permission check for RBAC migration buttons in the Django admin interface, ensuring proper access control for Billing Team members.

  • Modified permission check in /posthog/admin/admins/organization_admin.py to correctly show RBAC migration buttons only to Billing Team members
  • Previous implementation had an inverted condition that incorrectly hid the buttons from authorized users
  • Aligns with existing permission requirements in run_rbac_team_migration and run_rbac_feature_flag_migration methods

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@zlwaterfield zlwaterfield merged commit dc97998 into master Feb 14, 2025
99 checks passed
@zlwaterfield zlwaterfield deleted the zach/org-migration-permissions branch February 14, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants