Refactor authorized params in GroupsController
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
6195ab754d
commit
9e0d3906b9
1 changed files with 6 additions and 2 deletions
|
@ -125,7 +125,11 @@ class GroupsController < Groups::ApplicationController
|
|||
end
|
||||
|
||||
def group_params
|
||||
params.require(:group).permit(
|
||||
params.require(:group).permit(group_params_ce)
|
||||
end
|
||||
|
||||
def group_params_ce
|
||||
[
|
||||
:avatar,
|
||||
:description,
|
||||
:lfs_enabled,
|
||||
|
@ -135,7 +139,7 @@ class GroupsController < Groups::ApplicationController
|
|||
:request_access_enabled,
|
||||
:share_with_group_lock,
|
||||
:visibility_level
|
||||
)
|
||||
]
|
||||
end
|
||||
|
||||
def load_events
|
||||
|
|
Loading…
Reference in a new issue