Commit 4c83ec43 authored by Romain Courteaud's avatar Romain Courteaud

slapos_jio: only check accessible instances

parent 732cda14
......@@ -12,6 +12,6 @@ elif context.getSlapState() == 'destroy_requested':
elif context.getRootSlave():
news_dict["is_slave"] = 1
else:
news_dict["instance"] = [instance.SoftwareInstance_getNewsDict() for instance in context.getSpecialiseRelatedValueList(portal_type="Software Instance")]
news_dict["instance"] = [instance.SoftwareInstance_getNewsDict() for instance in context.getSpecialiseRelatedValueList(checked_permission='View', portal_type="Software Instance")]
return news_dict
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