Last active
January 11, 2019 18:42
-
-
Save sadok-f/20b6c4ad111a8f263468ccc18df7392a to your computer and use it in GitHub Desktop.
Gitlab: Disable groups creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Edit etc/gitlab/gitlab.rb | |
| gitlab_rails['gitlab_default_can_create_group'] = false | |
| # Restart gitlab: | |
| gitlab-ctl reconfigure | |
| gitlab-ctl restart | |
| # Update current users' settings: | |
| gitlab-rails console production | |
| --> | |
| for user in User.where(can_create_group: true) do | |
| user.can_create_group= false | |
| user.save! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment