From e71aa4c80227aa894a89e12c499a8ecb35ff2eec Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 11 Aug 2025 17:18:31 +0100 Subject: [PATCH] Fix collection visibility logic to allow multiple authors in CaseTable --- atlas/tables.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atlas/tables.py b/atlas/tables.py index 9d32ca5b..388bba86 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -136,7 +136,10 @@ class CaseTable(tables.Table): collections = [ collection for collection in record.casecollection_set.all() - if (hasattr(self, 'request') and self.request.user == collection.author) or collection.open_access + if ( + hasattr(self, 'request') + and self.request.user in collection.author.all() + ) or collection.open_access ] if collections: links = [