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

Disallow new project creation if not admin by default #539

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

smarlaku820
Copy link
Contributor

  • Updated before_action on the project controllers to disallow non-admin users to create new projects
  • Created a function in the application controller
  • Added config & introduced an environment variable if some type of deployments want to have users (non-admins) create new projects
  • Docs updated

@smarlaku820 smarlaku820 added V3.0 enhancement Pull requests that add a new feature ruby Pull requests that update Ruby code labels Feb 15, 2023
@smarlaku820 smarlaku820 linked an issue Feb 15, 2023 that may be closed by this pull request
@vanessuniq vanessuniq temporarily deployed to vulcan-pr-539 February 15, 2023 12:28 Inactive
@smarlaku820 smarlaku820 added the ux Addresses change on the user interface label Feb 15, 2023
@vanessuniq vanessuniq enabled auto-merge (squash) February 15, 2023 13:11
@vanessuniq
Copy link
Contributor

Can this be handled on the front end as well? Like disable the new project button for users with no privilege

@vanessuniq vanessuniq temporarily deployed to vulcan-pr-539 February 15, 2023 17:30 Inactive
@vanessuniq vanessuniq temporarily deployed to vulcan-pr-539 February 15, 2023 17:46 Inactive
@rlakey rlakey requested review from vanessuniq and removed request for rlakey February 15, 2023 17:55
@vanessuniq vanessuniq merged commit 7978322 into master Feb 15, 2023
@vanessuniq vanessuniq deleted the 538-add-option-to-restrict-project-creation branch February 15, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests that add a new feature ruby Pull requests that update Ruby code ux Addresses change on the user interface V3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to restrict project creation
2 participants