allow content manager to edit work items
This commit is contained in:
parent
30a7d430d7
commit
ba0fc064d0
1 changed files with 2 additions and 6 deletions
|
@ -169,12 +169,8 @@ class WorkItemDetails(TrackDetails):
|
|||
|
||||
@Lazy
|
||||
def allowedToEditWorkItem(self):
|
||||
# if not canAccessObject(self.object.task):
|
||||
# return False
|
||||
if checkPermission('loops.ManageSite', self.object):
|
||||
# or hasRole('loops.Master', self.object):
|
||||
return True
|
||||
if self.track.data.get('creator') == self.personId:
|
||||
#if checkPermission('loops.ManageSite', self.object):
|
||||
if checkPermission('zope.ManageContent', self.object):
|
||||
return True
|
||||
return self.user['object'] == getPersonForUser(self.object, self.view.request)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue