Fix collection visibility logic to allow multiple authors in CaseTable

This commit is contained in:
Ross
2025-08-11 17:18:31 +01:00
parent a8840290f5
commit e71aa4c802
+4 -1
View File
@@ -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 = [