Hide relations tab for simplified profile
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 08 Feb 2017 10:54:53 +0100
changeset 2339 ca8f0f056a87
parent 2338 32b51a3986b2
child 2340 501af83fca28
Hide relations tab for simplified profile it should only be displayed for full seda2 profiles.
views/archiveunit.py
--- a/views/archiveunit.py	Mon Feb 06 16:07:24 2017 +0100
+++ b/views/archiveunit.py	Wed Feb 08 10:54:53 2017 +0100
@@ -647,6 +647,7 @@
     """Display content's relations about a full seda2  archive unit."""
 
     __regid__ = 'seda_relations_tab'
+    __select__ = ArchiveUnitContentTab.__select__ & full_seda2_profile()
     content_vid = 'seda_content_relations'