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

Remove useless User.is_superuser #2026

Merged
merged 3 commits into from Oct 26, 2020
Merged

Remove useless User.is_superuser #2026

merged 3 commits into from Oct 26, 2020

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Oct 26, 2020

Changes

We have use for the is_staff field e.g. on PostHog Cloud where it's applicable to the core team, but is_superuser only causes confusion, as in any case permissions are per-organization. This removes that field from the User model.

@timgl timgl temporarily deployed to posthog-no-superuser-tye97wyed October 26, 2020 11:11 Inactive
Copy link
Contributor

@macobo macobo left a comment

Choose a reason for hiding this comment

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

LGTM - good to get rid of cruft!

@Twixes Twixes removed the request for review from mariusandra October 26, 2020 11:13
@Twixes Twixes temporarily deployed to posthog-no-superuser-tye97wyed October 26, 2020 11:14 Inactive
@Twixes Twixes temporarily deployed to posthog-no-superuser-tye97wyed October 26, 2020 11:26 Inactive
@Twixes Twixes merged commit 600b0d5 into master Oct 26, 2020
@Twixes Twixes deleted the no-superuser branch October 26, 2020 16: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.

None yet

3 participants