@cache_permission
def can_edit_flags(user, project):
 return check_permission(user, project, 'trans.edit_flags')

@ cache_permission def can_edit_flags ( user , project ) : return check_permission ( user , project , 'trans.edit_flags' )
checks whether user can edit translation flags .