File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/cs_dynamicpages/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ dependencies = [
2626 " plone.api" ,
2727 " collective.z3cform.datagridfield" ,
2828 " plone.app.upgrade" ,
29- " plone.restapi>=9.13.5 " ,
29+ " plone.restapi" ,
3030]
3131
3232[project .optional-dependencies ]
Original file line number Diff line number Diff line change 1+ from plone import api
12from plone .behavior .registration import BehaviorRegistrationNotFound
23from plone .behavior .registration import lookup_behavior_registration
3- from plone .restapi .serializer .schema import _check_permission
44
55
66class Manager :
@@ -19,7 +19,7 @@ def get_template_registry(self):
1919 obj
2020 for obj in self .context .aq_chain
2121 if registration .marker .providedBy (obj )
22- and _check_permission ("View" , self , obj )
22+ and api . user . has_permission ("View" , obj = obj )
2323 ),
2424 None ,
2525 )
You can’t perform that action at this time.
0 commit comments