Commit 6b73329d authored by Jérome Perrin's avatar Jérome Perrin

add some missing security declarations


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67676328
...@@ -67,6 +67,8 @@ class AccountingTransaction(Delivery): ...@@ -67,6 +67,8 @@ class AccountingTransaction(Delivery):
, PropertySheet.PaymentCondition , PropertySheet.PaymentCondition
) )
security.declareProtected(Permissions.AccessContentsInformation,
'hasSourceSectionAccounting')
def hasSourceSectionAccounting(self): def hasSourceSectionAccounting(self):
"""Return true if we should take into account accounting for source """Return true if we should take into account accounting for source
section. section.
...@@ -82,6 +84,8 @@ class AccountingTransaction(Delivery): ...@@ -82,6 +84,8 @@ class AccountingTransaction(Delivery):
return section.isMemberOf(preferred_section_category) return section.isMemberOf(preferred_section_category)
return 0 return 0
security.declareProtected(Permissions.AccessContentsInformation,
'hasDestinationSectionAccounting')
def hasDestinationSectionAccounting(self): def hasDestinationSectionAccounting(self):
"""Return true if we should take into account accounting for destination """Return true if we should take into account accounting for destination
section. section.
...@@ -97,6 +101,8 @@ class AccountingTransaction(Delivery): ...@@ -97,6 +101,8 @@ class AccountingTransaction(Delivery):
return section.isMemberOf(preferred_section_category) return section.isMemberOf(preferred_section_category)
return 0 return 0
security.declareProtected(Permissions.AccessContentsInformation,
'SearchableText')
def SearchableText(self): def SearchableText(self):
"""Text for full text search""" """Text for full text search"""
text_list = [] text_list = []
......
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