#NEWLINE# def _docheck( self , operation , resource , **assertion_kwargs ) : #NEWLINE# #INDENT# had_roles = self . load_roles ( ) #NEWLINE# role_list = list ( had_roles ) #NEWLINE# assert ( len ( role_list ) == len ( set ( role_list ) ) ) #NEWLINE# return self . acl . is_any_allowed ( role_list , operation , resource , ** assertion_kwargs )