diff options
Diffstat (limited to 'app/controllers/dashboard/snippets_controller.rb')
-rw-r--r-- | app/controllers/dashboard/snippets_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/dashboard/snippets_controller.rb b/app/controllers/dashboard/snippets_controller.rb index 382f54c6c00..6feade3df03 100644 --- a/app/controllers/dashboard/snippets_controller.rb +++ b/app/controllers/dashboard/snippets_controller.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true class Dashboard::SnippetsController < Dashboard::ApplicationController + include PaginatedCollection include Gitlab::NoteableMetadata skip_cross_project_access_check :index @@ -11,6 +12,8 @@ class Dashboard::SnippetsController < Dashboard::ApplicationController .page(params[:page]) .inc_author + return if redirect_out_of_range(@snippets) + @noteable_meta_data = noteable_meta_data(@snippets, 'Snippet') end end |