Commit 29f631fa authored by Alexandre Boeglin's avatar Alexandre Boeglin

Documents should be protected by AccessContentsInformation, instead of View.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5107 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea33324f
......@@ -49,7 +49,7 @@ class AccountingTransactionRule(Rule):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -45,7 +45,7 @@ class BankingOperation(Delivery, AccountingTransaction):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -41,7 +41,7 @@ class BankingOperationLine(AccountingTransactionLine):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties
property_sheets = ( PropertySheet.Base
......
......@@ -47,7 +47,7 @@ class CashContainer(Container):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative properties
property_sheets = ( PropertySheet.Base
......
......@@ -47,7 +47,7 @@ class CashCurrency(Resource):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( Interface.Variated, )
......
......@@ -43,7 +43,7 @@ class CashDelivery(Delivery):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( Interface.Variated, )
......
......@@ -51,7 +51,7 @@ class CashDeliveryLine(DeliveryLine):
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.View)
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative interfaces
__implements__ = ( Interface.Variated, )
......
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