@cache_permission
def can_view_reports(user, project):
 return check_permission(user, project, 'trans.view_reports')

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