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

Allow promoting a user to admin via the manage users page. #814

Merged
merged 1 commit into from
Mar 3, 2013
Merged

Allow promoting a user to admin via the manage users page. #814

merged 1 commit into from
Mar 3, 2013

Conversation

DamianZaremba
Copy link
Contributor

Sometimes (such as if you're using ldap for authentication), the primary admin of the install won't be that of the initial superuser.

Using the initial superuser, you should be able to promote any other user to be an admin - via the is_staff flag.

This patch allows this promotion, by extending the ChangeUserForm, currently used to administratively modify users.

Sometimes (such as if you're using ldap for authentication),
the primary admin of the install won't be that of the initial
superuser.

Using the initial superuser, you should be able to promote any
other user to be an admin - via the is_staff flag.

This patch allows this promotion, by extending the ChangeUserForm,
currently used to administratively modify users.
@dcramer
Copy link
Member

dcramer commented Mar 2, 2013

One note here is that is_staff wont actually let them do anything other than view the admin. Is that enough?

@DamianZaremba
Copy link
Contributor Author

As far as I can tell /admin/ uses is_admin, which just wraps is_staff... since django admin etc aren't accessible I can't see a need for is_superuser.

Possible the wording is slightly misleading as 'administrative' could be mean more superuser level, however for user friendliness I think wrapping limited stuff under /admin/ is preferable and works just nicely.

@dcramer
Copy link
Member

dcramer commented Mar 3, 2013

Forgot about those pages ;)

dcramer added a commit that referenced this pull request Mar 3, 2013
Allow promoting a user to admin via the manage users page.
@dcramer dcramer merged commit 7a80739 into getsentry:master Mar 3, 2013
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants