@cache_permission
def can_add_comment(user, project):
 return check_permission(user, project, 'trans.add_comment')

@ cache_permission def can_add_comment ( user , project ) : return check_permission ( user , project , 'trans.add_comment' )
checks whether user can add comment for given project .