Remove AR hook to set the default subgroup_creation_level
This commit is contained in:
parent
81662f7b9f
commit
42167779ea
1 changed files with 0 additions and 6 deletions
|
@ -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 }
|
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_create :post_create_hook
|
||||||
after_destroy :post_destroy_hook
|
after_destroy :post_destroy_hook
|
||||||
after_save :update_two_factor_requirement
|
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.")
|
errors.add(:visibility_level, "#{visibility} is not allowed since there are sub-groups with higher visibility.")
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_subgroup_creation_level_to_maintainers
|
|
||||||
self.subgroup_creation_level = ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue