diff --git a/atlas/tables.py b/atlas/tables.py index e5976728..9d32ca5b 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -133,7 +133,11 @@ class CaseTable(tables.Table): return "No associated cases" def render_collections(self, record): - collections = record.casecollection_set.all() + collections = [ + collection + for collection in record.casecollection_set.all() + if (hasattr(self, 'request') and self.request.user == collection.author) or collection.open_access + ] if collections: links = [ format_html(