Commit 197ae971 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Hide relations tab for data-object in simplified seda profiles

parent c0e49ad09701
......@@ -27,7 +27,7 @@ from cubes.relationwidget import views as rwdg
from cubes.skos.views import widgets as skos
from cubes.seda.xsd2yams import RDEF_CONSTRAINTS
from cubes.seda.entities import parent_and_container, simplified_profile
from cubes.seda.entities import parent_and_container, simplified_profile, full_seda2_profile
from cubes.seda.views import rtags_from_xsd_element, add_subobject_link
from cubes.seda.views import viewlib, copy_rtag
from cubes.seda.views import uicfg as sedauicfg # noqa - ensure those rules are defined first
......@@ -227,8 +227,8 @@ class DataObjectRelationsTab(tabs.PrimaryTab):
"""Display relations of a binary or physical data object"""
__regid__ = 'seda_do_relations'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDABinaryDataObject',
'SEDAPhysicalDataObject')
__select__ = (is_instance('SEDABinaryDataObject', 'SEDAPhysicalDataObject')
& full_seda2_profile())
_('creating SEDARelationship (SEDARelationship seda_relationship '
'SEDABinaryDataObject %(linkto)s)')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment