#NEWLINE# def has_module_permission( self , request , obj ) : #NEWLINE# #INDENT# if ( ( request . method in [ 'PUT' , 'PATCH' ] ) or ( self . _action in [ 'update' ] ) ) : #NEWLINE# #INDENT# if ( obj . _bmfmeta . workflow and ( not obj . _bmfmeta . workflow . object . update ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# if ( ( request . method in [ 'DELETE' ] ) or ( self . _action in [ 'delete' ] ) ) : #NEWLINE# #INDENT# if ( obj . _bmfmeta . workflow and ( not obj . _bmfmeta . workflow . object . delete ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True