diff options
author | Dmitry Medvinsky <me@dmedvinsky.name> | 2013-03-11 10:44:45 +0400 |
---|---|---|
committer | Dmitry Medvinsky <me@dmedvinsky.name> | 2013-05-16 18:02:22 +0400 |
commit | 22279bc55870435c61d5e8208cc3117ef2268052 (patch) | |
tree | 1433f090b459f8573619121533546de8c2b32a02 /app/controllers/registrations_controller.rb | |
parent | 3e115faafa13a0bcad5458a9632dec909eb376da (diff) | |
download | gitlab-ce-22279bc55870435c61d5e8208cc3117ef2268052.tar.gz |
Add settings for user permission defaults
“Can create groups” and “Can create teams” had hardcoded defaults to
`true`. Sometimes it is desirable to prohibit these for newly created
users by default.
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r-- | app/controllers/registrations_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 507a5c206c6..194dfcd4122 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -16,8 +16,7 @@ class RegistrationsController < Devise::RegistrationsController def build_resource(hash=nil) super - self.resource.projects_limit = Gitlab.config.gitlab.default_projects_limit - self.resource + self.resource.with_defaults end private |