@cache_permission
def can_add_translation(user, project):
 return check_permission(user, project, 'trans.add_translation')

@ cache_permission def can_add_translation ( user , project ) : return check_permission ( user , project , 'trans.add_translation' )
checks whether user can view reports on given project .