blob: 161c22046f92d329e524387202f3ac074c310f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
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
|