Commit 227c8d52 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: If cloud contract preference is disable, anyone is allowed to allocate

parent 81b3fff6
portal = context.getPortalObject() portal = context.getPortalObject()
if not portal.portal_preferences.getPreferredCloudContractEnabled():
return True
person = context person = context
contract_portal_type = "Cloud Contract" 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