Commit 1e7df6e4 authored by Nicolas Wavrant's avatar Nicolas Wavrant

solve function in SolverTypeInformation should benefit from the same security

parent 66932d5f
...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo ...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.ERP5Type import ERP5TypeInformation from Products.ERP5Type.ERP5Type import ERP5TypeInformation
from Products.ERP5Type.Core.Predicate import Predicate from Products.ERP5Type.Core.Predicate import Predicate
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
class SolverTypeInformation(Predicate, ERP5TypeInformation): class SolverTypeInformation(Predicate, ERP5TypeInformation):
""" """
...@@ -214,6 +215,8 @@ class SolverTypeInformation(Predicate, ERP5TypeInformation): ...@@ -214,6 +215,8 @@ class SolverTypeInformation(Predicate, ERP5TypeInformation):
method = getattr(solver, method_id) method = getattr(solver, method_id)
return method() return method()
security.declarePrivate('solve')
@UnrestrictedMethod
def solve(self, delivery_list=None, configuration_dict=None, def solve(self, delivery_list=None, configuration_dict=None,
activate_kw=None, **kw): activate_kw=None, **kw):
if delivery_list is None: if delivery_list is None:
......
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