Commit e06fea3f authored by Martijn Pieters's avatar Martijn Pieters

Brown bag of the year award: missed the decorator here

parent 17caae24
...@@ -176,6 +176,7 @@ class Owned(ExtensionClass.Base): ...@@ -176,6 +176,7 @@ class Owned(ExtensionClass.Base):
if owner == info: return 0 if owner == info: return 0
return security.checkPermission('Take ownership', self) return security.checkPermission('Take ownership', self)
@postonly
def manage_takeOwnership(self, REQUEST, RESPONSE, recursive=0): def manage_takeOwnership(self, REQUEST, RESPONSE, recursive=0):
"""Take ownership (responsibility) for an object. """Take ownership (responsibility) for an object.
...@@ -195,6 +196,7 @@ class Owned(ExtensionClass.Base): ...@@ -195,6 +196,7 @@ class Owned(ExtensionClass.Base):
RESPONSE.redirect(REQUEST['HTTP_REFERER']) RESPONSE.redirect(REQUEST['HTTP_REFERER'])
@postonly
def manage_changeOwnershipType(self, explicit=1, def manage_changeOwnershipType(self, explicit=1,
RESPONSE=None, REQUEST=None): RESPONSE=None, REQUEST=None):
"""Change the type (implicit or explicit) of ownership. """Change the type (implicit or explicit) of ownership.
......
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