Fix collection visibility logic to allow multiple authors in CaseTable
This commit is contained in:
+4
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user