show comment state only if corresponding option is set
This commit is contained in:
parent
6a91788d9e
commit
f34dc4a59c
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ class CommentsView(NodeView):
|
|||
return result
|
||||
|
||||
def getActionsFor(self, comment):
|
||||
if not self.globalOptions('organize.showCommentState'):
|
||||
return []
|
||||
if not checkPermission('loops.ViewRestricted', self.context):
|
||||
return []
|
||||
trackUid = util.getUidForObject(comment.track)
|
||||
|
|
Loading…
Add table
Reference in a new issue