Commit edb12178 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Only show attention point about contract if preference is enabled

parent 0834711e
...@@ -43,7 +43,9 @@ if portal_type in ["Support Request Module"]: ...@@ -43,7 +43,9 @@ if portal_type in ["Support Request Module"]:
if entry is not None: if entry is not None:
attention_point_list.append(entry) attention_point_list.append(entry)
if portal_type in ["Hosting Subscription Module", "Hosting Subscription", "Person"]: if portal_type in ["Hosting Subscription Module", "Hosting Subscription", "Person"] and \
portal.portal_preferences.getPreferredCloudContractEnabled():
person = portal.portal_membership.getAuthenticatedMember().getUserValue() person = portal.portal_membership.getAuthenticatedMember().getUserValue()
contract = portal.portal_catalog.getResultValue( contract = portal.portal_catalog.getResultValue(
portal_type="Cloud Contract", portal_type="Cloud Contract",
......
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