Setting gitlab_username_changing_enabled to false in gitlab.rb is not respected
Summary
Tested on GitLab v10.6.3-ee.
Setting gitlab_rails['gitlab_username_changing_enabled'] = false
is not respected.
Steps to reproduce
- Edit
gitlab.rb
and setgitlab_rails['gitlab_username_changing_enabled'] = false
- Run
sudo gitlab-ctl reconfigure
to apply the change - Impersonate any user and observe that the user is still able to change their username.
What is the current bug behavior?
Disabling username changing has no effect.
What is the expected correct behavior?
Users should no longer be able to change their usernames.
Relevant logs and/or screenshots
Change applied to gitlab.rb
does reflect in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
## User settings
default_can_create_group: # default: true
username_changing_enabled: false # default: true - User can change her username/namespace
Edited by Collen