def checkAccessControlIsActive(self):
        if os.path.isfile(os.path.dirname(os.path.realpath(__file__)) + '\config.json'):
            with open(os.path.dirname(os.path.realpath(__file__)) + '\config.json') as config_file:
                config = json.load(config_file)
            accessControl = config['accessControl']
            pass
        else:
            settings = QSettings("PostNAS", "PostNAS-Suche")
            accessControl = settings.value("accessControl")

        if(accessControl == 1):
            if (self.checkAccessTable() == False):
                accessControl = 0
        else:
            if (self.checkAccessTable() == True):
                accessControl = 1

        if os.path.isfile(os.path.dirname(os.path.realpath(__file__)) + '\config.json'):
            config['accessControl'] = accessControl
            with open(os.path.dirname(os.path.realpath(__file__)) + '\config.json', 'w') as config_file:
                json.dump(config, config_file)
        else:
            settings.setValue("accessControl", accessControl)

        if(accessControl == 1):
            return True
        else:
            return False