18 lines
400 B
Ruby
18 lines
400 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
end
|
|
|
|
Dashboard::ApplicationController.prepend_mod
|