diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-10 15:57:09 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-10 17:14:18 -0500 |
commit | 81ee2a3445be99d93874c8b47e6acff072be03c0 (patch) | |
tree | 98b05a6c43ded4096e29773fa0f385635ab93dcc | |
parent | 470ff49e8b97ff5aaeb797057a3c71006135fbde (diff) | |
download | gitlab-ce-refactor-controller-params.tar.gz |
Refactor authorized params in GroupsControllerrefactor-controller-params
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | app/controllers/groups_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index b61f4e9a2db..f81237db991 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -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 |