#NEWLINE# def _is_action_allowed( self , ticket_perm , required_perms ) : #NEWLINE# #INDENT# if ( not required_perms ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# for permission in self : #NEWLINE# #INDENT# if ( permission in ticket_perm ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False