gitlab-org--gitlab-foss/app/controllers/dashboard/application_controller.rb
2018-02-22 17:11:36 +01:00

13 lines
286 B
Ruby

class Dashboard::ApplicationController < ApplicationController
include ControllerWithCrossProjectAccessCheck
layout 'dashboard'
requires_cross_project_access
private
def projects
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
end
end