2018-09-23 15:44:14 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-04-30 13:06:18 -04:00
|
|
|
class Dashboard::ApplicationController < ApplicationController
|
2017-12-11 09:21:06 -05:00
|
|
|
include ControllerWithCrossProjectAccessCheck
|
|
|
|
|
2015-05-01 04:39:11 -04:00
|
|
|
layout 'dashboard'
|
2016-03-22 14:19:53 -04:00
|
|
|
|
2017-12-11 09:21:06 -05:00
|
|
|
requires_cross_project_access
|
|
|
|
|
2016-03-22 14:19:53 -04:00
|
|
|
private
|
|
|
|
|
|
|
|
def projects
|
|
|
|
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
|
|
|
|
end
|
2015-04-30 13:06:18 -04:00
|
|
|
end
|