Updated portlet permission
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 16:44:46 +0200
changeset 526 b15153f45957
parent 525 72e35444c6b2
child 527 5dd1aa8bedd9
Updated portlet permission
src/pyams_content/shared/view/portlet/__init__.py
--- a/src/pyams_content/shared/view/portlet/__init__.py	Fri Apr 06 23:14:49 2018 +0200
+++ b/src/pyams_content/shared/view/portlet/__init__.py	Wed Apr 11 16:44:46 2018 +0200
@@ -19,7 +19,7 @@
 from pyams_content.shared.view.portlet.interfaces import IViewItemsPortletSettings
 from pyams_portal.interfaces import IPortalContext, IPortletRenderer
 from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import PUBLIC_PERMISSION
+from pyams_utils.interfaces import VIEW_PERMISSION
 
 # import packages
 from pyams_content.workflow import PUBLISHED_STATES
@@ -52,7 +52,7 @@
             return view.get_results(context)
 
 
-@portlet_config(permission=PUBLIC_PERMISSION)
+@portlet_config(permission=VIEW_PERMISSION)
 class ViewItemsPortlet(Portlet):
     """View items portlet"""