#NEWLINE# def permissions_check( self , report , request , domain = None , is_navigation_check = False ) : #NEWLINE# #INDENT# if is_navigation_check : #NEWLINE# #INDENT# from corehq.apps.importer.base import ImportCases #NEWLINE# from corehq.apps.data_interfaces.interfaces import BulkFormManagementInterface #NEWLINE# report_name = report . split ( '.' ) [ ( - 1 ) ] #NEWLINE# if ( report_name == ImportCases . __name__ ) : #NEWLINE# #INDENT# if ( not has_privilege ( request , privileges . BULK_CASE_MANAGEMENT ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# if ( report_name == BulkFormManagementInterface . __name__ ) : #NEWLINE# #INDENT# if ( not has_privilege ( request , privileges . DATA_CLEANUP ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return request . couch_user . can_edit_data ( report_name )