#NEWLINE# def dispatch( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# Permission . check_permissions ( request . user , ( permission_workflow_view , ) ) #NEWLINE# #UNINDENT# except PermissionDenied : #NEWLINE# #INDENT# AccessControlList . objects . check_access ( permission_workflow_view , request . user , self . get_document ( ) ) #NEWLINE# #UNINDENT# return super ( DocumentWorkflowInstanceListView , self ) . dispatch ( request , * args , ** args )