Commit 252e2721 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Refactor authorized params in Admin::GroupsController

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c4abcfa7
...@@ -61,15 +61,24 @@ class Admin::GroupsController < Admin::ApplicationController ...@@ -61,15 +61,24 @@ class Admin::GroupsController < Admin::ApplicationController
end end
def group_params def group_params
params.require(:group).permit( params.require(:group).permit(group_params_ce << group_params_ee)
end
def group_params_ce
[
:avatar, :avatar,
:description, :description,
:lfs_enabled, :lfs_enabled,
:name, :name,
:path, :path,
:repository_size_limit,
:request_access_enabled, :request_access_enabled,
:visibility_level :visibility_level
) ]
end
def group_params_ee
[
:repository_size_limit
]
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment