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

Add an option to only allow super users to create organisations #380

Closed
dabeeeenster opened this issue Oct 1, 2021 · 1 comment
Closed
Assignees
Labels
api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard

Comments

@dabeeeenster
Copy link
Contributor

dabeeeenster commented Oct 1, 2021

Expose the superuser django User boolean field in the User API as a read only field.

Add an env var on the API called ONLY_SUPERUSERS_CAN_CREATE_ORGANISATIONS that defaults to False.

If this env var is True, only show the Create Organisation button to superuser Django admins.

@dabeeeenster dabeeeenster added api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard labels Oct 1, 2021
@gagantrivedi
Copy link
Member

Adds is_superuser to /api/v1/auth/users/me/ endpoint that can be used to check if the current user is super user or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

No branches or pull requests

3 participants