Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snippets_controller.rb « dashboard « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0ba97e4fd596197f7f9b2d2e387060307e89a878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class Dashboard::SnippetsController < Dashboard::ApplicationController
  skip_cross_project_access_check :index

  def index
    @snippets = SnippetsFinder.new(
      current_user,
      author: current_user,
      scope: params[:scope]
    ).execute
    @snippets = @snippets.page(params[:page])
  end
end