summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/dashboard/application_controller.rb')
-rw-r--r--app/controllers/dashboard/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/dashboard/application_controller.rb b/app/controllers/dashboard/application_controller.rb
index cee0753a021..1c9a5917da5 100644
--- a/app/controllers/dashboard/application_controller.rb
+++ b/app/controllers/dashboard/application_controller.rb
@@ -12,4 +12,8 @@ class Dashboard::ApplicationController < ApplicationController
def projects
@projects ||= current_user.authorized_projects.sorted_by_activity.non_archived
end
+
+ def groups
+ @groups ||= GroupsFinder.new(current_user, state_all: true).execute
+ end
end