gitlab-org--gitlab-foss/app/controllers/dashboard/application_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
354 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-04-30 17:06:18 +00:00
class Dashboard::ApplicationController < ApplicationController
include ControllerWithCrossProjectAccessCheck
include RecordUserLastActivity
layout 'dashboard'
requires_cross_project_access
private
def projects
@projects ||= current_user.authorized_projects.sorted_by_updated_desc.non_archived
end
2015-04-30 17:06:18 +00:00
end