diff options
author | Rémy Coutable <remy@rymai.me> | 2018-12-17 21:05:08 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-12-17 21:15:06 +0300 |
commit | eecb6d2f78a483b141b00f735917fe93848a22f2 (patch) | |
tree | ff1379bf52b666495a6776d9c911a2bbb7950f10 /app/controllers/projects/protected_tags_controller.rb | |
parent | 4a10c813e726d09216c534bb0ad0ae50a0400259 (diff) |
Reduce diff with EE in ProtectedRefsController
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/controllers/projects/protected_tags_controller.rb')
-rw-r--r-- | app/controllers/projects/protected_tags_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects/protected_tags_controller.rb b/app/controllers/projects/protected_tags_controller.rb index 01cedba95ac..41191639c2b 100644 --- a/app/controllers/projects/protected_tags_controller.rb +++ b/app/controllers/projects/protected_tags_controller.rb @@ -15,6 +15,10 @@ class Projects::ProtectedTagsController < Projects::ProtectedRefsController @protected_ref = @project.protected_tags.find(params[:id]) end + def access_levels + [:create_access_levels] + end + def protected_ref_params params.require(:protected_tag).permit(:name, create_access_levels_attributes: access_level_attributes) end |