debian-mirror-gitlab/app/controllers/dashboard/application_controller.rb

14 lines
286 B
Ruby
Raw Normal View History

2015-09-11 14:41:01 +05:30
class Dashboard::ApplicationController < ApplicationController
2018-03-27 19:54:05 +05:30
include ControllerWithCrossProjectAccessCheck
2015-09-11 14:41:01 +05:30
layout 'dashboard'
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
requires_cross_project_access
2016-06-02 11:05:42 +05:30
private
def projects
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
end
2015-09-11 14:41:01 +05:30
end