provide link for editing work item only to person associated with the work item

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4192 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2011-02-28 11:13:24 +00:00
parent c13e6a6d00
commit d3d6e2b7ef

View file

@ -127,7 +127,8 @@ class WorkItemDetails(TrackDetails):
target=self.object,
addParams=dict(id=self.track.__name__))
actions = [info, WorkItemStateAction(self)]
if self.isLastInRun:
if (self.isLastInRun and
self.user['object'] == getPersonForUser(self.object, self.view.request)):
self.view.registerDojoDateWidget()
self.view.registerDojoNumberWidget()
self.view.registerDojoTextarea()