[Erp5-report] r25701 - /erp5/trunk/products/ERP5/Document/AccountingTransaction.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 25 13:29:23 CET 2009


Author: jerome
Date: Wed Feb 25 13:29:22 2009
New Revision: 25701

URL: http://svn.erp5.org?rev=25701&view=rev
Log:
add some missing security declarations

Modified:
    erp5/trunk/products/ERP5/Document/AccountingTransaction.py

Modified: erp5/trunk/products/ERP5/Document/AccountingTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/AccountingTransaction.py?rev=25701&r1=25700&r2=25701&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/AccountingTransaction.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/AccountingTransaction.py [utf8] Wed Feb 25 13:29:22 2009
@@ -67,6 +67,8 @@
                       , PropertySheet.PaymentCondition
                       )
     
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'hasSourceSectionAccounting')
     def hasSourceSectionAccounting(self):
       """Return true if we should take into account accounting for source
       section.
@@ -82,6 +84,8 @@
           return section.isMemberOf(preferred_section_category)
       return 0
 
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'hasDestinationSectionAccounting')
     def hasDestinationSectionAccounting(self):
       """Return true if we should take into account accounting for destination
       section.
@@ -97,6 +101,8 @@
           return section.isMemberOf(preferred_section_category)
       return 0
     
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'SearchableText')
     def SearchableText(self):
       """Text for full text search"""
       text_list = []




More information about the Erp5-report mailing list