From 12e7f48e335a814418ef2bfec3263c526b188f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Tue, 18 Mar 2025 13:37:40 +0100 Subject: [PATCH] .CRM cases system folder visiblity --- app/models/dmsf_folder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dmsf_folder.rb b/app/models/dmsf_folder.rb index b3909474..ebbb868e 100644 --- a/app/models/dmsf_folder.rb +++ b/app/models/dmsf_folder.rb @@ -118,7 +118,7 @@ class DmsfFolder < ApplicationRecord if folder&.system return false unless allow_system || User.current.allowed_to?(:display_system_folders, folder.project) - if %w[.Issues .CRM\ cases].exclude?(folder.title) && + if ['.Issues', '.CRM cases'].exclude?(folder.title) && !folder.issue&.visible?(User.current) && !folder.easy_crm_case&.visible?(User.current) return false