Commit 79035049 authored by Rafael Monnerat's avatar Rafael Monnerat

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

parent 995d510f
Pipeline #11825 passed with stage
in 0 seconds
......@@ -43,7 +43,9 @@ if portal_type in ["Support Request Module"]:
if entry is not None:
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()
contract = portal.portal_catalog.getResultValue(
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