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

14 lines
286 B
Ruby
Raw Normal View History

2015-04-30 13:06:18 -04:00
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
2015-04-30 13:06:18 -04:00
end