ad309f5d11
Refactor snippets finder & dont return internal snippets for external users See merge request !2094
10 lines
265 B
Ruby
10 lines
265 B
Ruby
class Dashboard::SnippetsController < Dashboard::ApplicationController
|
|
def index
|
|
@snippets = SnippetsFinder.new(
|
|
current_user,
|
|
author: current_user,
|
|
scope: params[:scope]
|
|
).execute
|
|
@snippets = @snippets.page(params[:page])
|
|
end
|
|
end
|