diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-07-01 19:00:34 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 22:06:57 +0300 |
commit | 27ebf9392ac83cb020803b88ff7ca69887c36753 (patch) | |
tree | 198891cc8e6af8a533760322a5ebf29c00f2637c /app/models/group.rb | |
parent | 4b572f807c0f51ad47ad907d0ac471c7b81ac8be (diff) |
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 |