#NEWLINE# def dispatch( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# space = get_object_or_404 ( Space , url = kwargs [ 'space_url' ] ) #NEWLINE# if request . user . has_perm ( 'view_space' , args ) : #NEWLINE# #INDENT# return super ( ListDocs , self ) . dispatch ( request , * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise PermissionDenied