[Erp5-report] r27309 - /erp5/trunk/products/ERP5/Document/Amount.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 1 14:38:46 CEST 2009


Author: jerome
Date: Mon Jun  1 14:38:45 2009
New Revision: 27309

URL: http://svn.erp5.org?rev=27309&view=rev
Log:
security declaration looks inverted here

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

Modified: erp5/trunk/products/ERP5/Document/Amount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Amount.py?rev=27309&r1=27308&r2=27309&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Amount.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Amount.py [utf8] Mon Jun  1 14:38:45 2009
@@ -652,11 +652,11 @@
 #     return result  
     
   # Profit and Loss
-  security.declareProtected(Permissions.ModifyPortalContent, 'getLostQuantity')
+  security.declareProtected(Permissions.AccessContentsInformation, 'getLostQuantity')
   def getLostQuantity(self):
     return - self.getProfitQuantity()
 
-  security.declareProtected(Permissions.AccessContentsInformation, 'setLostQuantity')
+  security.declareProtected(Permissions.ModifyPortalContent, 'setLostQuantity')
   def setLostQuantity(self, value):
     return self.setProfitQuantity(- value)
 




More information about the Erp5-report mailing list