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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
354 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
class Dashboard::ApplicationController < ApplicationController
2018-03-27 19:54:05 +05:30
include ControllerWithCrossProjectAccessCheck
2019-03-02 22:35:43 +05:30
include RecordUserLastActivity
2018-03-27 19:54:05 +05:30
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
2022-06-21 17:19:12 +05:30
@projects ||= current_user.authorized_projects.sorted_by_updated_desc.non_archived
2016-06-02 11:05:42 +05:30
end
2015-09-11 14:41:01 +05:30
end