#NEWLINE# def allowed( self , request , volume = None ) : #NEWLINE# #INDENT# has_image_service_perm = request . user . has_perm ( 'openstack.services.image' ) #NEWLINE# return ( ( volume . status in ( 'available' , 'in-use' ) ) and request )