Commit 61acf0f5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Declare permissions of objects.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54f24197
......@@ -121,6 +121,7 @@ class Category(Folder):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareProtected(Permissions.ManagePortal,
'manage_editProperties',
'manage_changeProperties',
......@@ -472,6 +473,7 @@ class BaseCategory(Category):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
def asSqlExpression(self, strict_membership=0, table='category'):
"""
......
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