Commit a238b247 authored by Jérome Perrin's avatar Jérome Perrin

security declaration looks inverted here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71bfe2fc
......@@ -652,11 +652,11 @@ class Amount(Base, Variated):
# 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)
......
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