show comment state only if corresponding option is set

This commit is contained in:
Helmut Merz 2014-04-14 19:08:21 +02:00
parent 6a91788d9e
commit f34dc4a59c

View file

@ -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)