Adds further condition in DmsfQuery#dmsf_nodes

It will make sure that a pending link will be
deleted from the query and hence not displayed
to the user.

A pending link has no project assigned. For those
links the case statement in DmsfQuery#dmsf_nodes
will now return true what causes the link to be
deleted from the query result.
This commit is contained in:
Liane Hampe 2024-02-15 08:27:42 +01:00
parent d577f559e1
commit 360c195f1a

View File

@ -232,6 +232,8 @@ class DmsfQuery < Query
!dmsf_link.dmsf_folder.visible? || !DmsfFolder.permissions?(dmsf_link.dmsf_folder, allow_system: false) !dmsf_link.dmsf_folder.visible? || !DmsfFolder.permissions?(dmsf_link.dmsf_folder, allow_system: false)
elsif dmsf_link.project elsif dmsf_link.project
!dmsf_link.project.dmsf_available? !dmsf_link.project.dmsf_available?
else
!dmsf_link.project&.dmsf_available?
end end
else else
false false