Commit 2efcace5 authored by Paul Slaughter's avatar Paul Slaughter

Push multi files flag in snippets controllers

parent 0b185230
...@@ -14,6 +14,10 @@ class Projects::SnippetsController < Projects::Snippets::ApplicationController ...@@ -14,6 +14,10 @@ class Projects::SnippetsController < Projects::Snippets::ApplicationController
before_action :authorize_update_snippet!, only: [:edit, :update] before_action :authorize_update_snippet!, only: [:edit, :update]
before_action :authorize_admin_snippet!, only: [:destroy] before_action :authorize_admin_snippet!, only: [:destroy]
before_action do
push_frontend_feature_flag(:snippet_multiple_files, current_user)
end
def index def index
@snippet_counts = ::Snippets::CountService @snippet_counts = ::Snippets::CountService
.new(current_user, project: @project) .new(current_user, project: @project)
......
...@@ -17,6 +17,10 @@ class SnippetsController < Snippets::ApplicationController ...@@ -17,6 +17,10 @@ class SnippetsController < Snippets::ApplicationController
layout 'snippets' layout 'snippets'
before_action do
push_frontend_feature_flag(:snippet_multiple_files, current_user)
end
def index def index
if params[:username].present? if params[:username].present?
@user = UserFinder.new(params[:username]).find_by_username! @user = UserFinder.new(params[:username]).find_by_username!
......
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