Commit a31524d0 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Refactor authorized params in GroupsController

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5920cf1a
......@@ -125,19 +125,28 @@ class GroupsController < Groups::ApplicationController
end
def group_params
params.require(:group).permit(
params.require(:group).permit(group_params_ce << group_params_ee)
end
def group_params_ce
[
:avatar,
:description,
:lfs_enabled,
:membership_lock,
:name,
:path,
:public,
:repository_size_limit,
:request_access_enabled,
:share_with_group_lock,
:visibility_level
)
]
end
def group_params_ee
[
:membership_lock,
:repository_size_limit
]
end
def load_events
......
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