From 0cb221609a8b844fd3d82193e1e4beb8eee3cd16 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Sun, 27 Dec 2020 22:05:15 +0100 Subject: [PATCH] Fix global activities page [SCI-5324] --- app/models/my_module.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/my_module.rb b/app/models/my_module.rb index 1a41df3a6..52ccb339e 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -128,6 +128,10 @@ class MyModule < ApplicationRecord where(experiment: Experiment.viewable_by_user(user, teams)) end + def navigable? + !experiment.archived? && experiment.navigable? + end + def archived_branch? archived? || experiment.archived_branch? end