diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-07-01 09:00:34 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 13:06:50 -0700 |
commit | ef5f8bda2cc6698d20081c3e7403e9af39398a63 (patch) | |
tree | aefafb6a03c289a716da49d5aae589fdf0ba380e /app/models/group.rb | |
parent | 95708920ae309a82240d14e4a5bb1bb944085fb3 (diff) | |
download | gitlab-ce-ef5f8bda2cc6698d20081c3e7403e9af39398a63.tar.gz |
Remove AR hook to set the default subgroup_creation_level
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 8f39c3a658f..9520db1bc0a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -58,8 +58,6 @@ class Group < Namespace add_authentication_token_field :runners_token, encrypted: -> { Feature.enabled?(:groups_tokens_optional_encryption, default_enabled: true) ? :optional : :required } - before_create :default_subgroup_creation_level_to_maintainers - after_create :post_create_hook after_destroy :post_destroy_hook after_save :update_two_factor_requirement @@ -447,8 +445,4 @@ class Group < Namespace errors.add(:visibility_level, "#{visibility} is not allowed since there are sub-groups with higher visibility.") end - - def default_subgroup_creation_level_to_maintainers - self.subgroup_creation_level = ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS - end end |