Skip to content
Snippets Groups Projects
Commit e8da6255 authored by Rubén Dávila's avatar Rubén Dávila
Browse files
parent ccdf7a93
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,5 +7,11 @@ module Groups
def initialize(group, user, params = {})
@group, @current_user, @params = group, user, params.dup
end
private
def remove_unallowed_params
# overridden in EE
end
end
end
Loading
Loading
@@ -8,6 +8,8 @@ module Groups
end
 
def execute
remove_unallowed_params
@group = Group.new(params)
 
after_build_hook(@group, params)
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@ module Groups
 
def execute
reject_parent_id!
remove_unallowed_params
 
return false unless valid_visibility_level_change?(group, params[:visibility_level])
 
Loading
Loading
Loading
Loading
@@ -26,6 +26,7 @@ module API
optional :ldap_cn, type: String, desc: 'LDAP Common Name'
optional :ldap_access, type: Integer, desc: 'A valid access level'
optional :shared_runners_minutes_limit, type: Integer, desc: '(admin-only) Pipeline minutes quota for this group'
optional :extra_shared_runners_minutes_limit, type: Integer, desc: '(admin-only) Extra pipeline minutes quota for this group'
all_or_none_of :ldap_cn, :ldap_access
end
end
Loading
Loading
Loading
Loading
@@ -54,6 +54,7 @@ module API
 
if Gitlab.ee?
optional :shared_runners_minutes_limit, type: Integer, desc: 'Pipeline minutes quota for this user'
optional :extra_shared_runners_minutes_limit, type: Integer, desc: '(admin-only) Extra pipeline minutes quota for this user'
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment