debian-mirror-gitlab/app/controllers/dashboard/application_controller.rb
2018-12-05 23:21:45 +05:30

15 lines
317 B
Ruby

# frozen_string_literal: true
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