def create_auth_file(callee, users): make_nagios_directory(g_auth_base_dir) if config.export_folder_permissions: import wato # HACK: cleanup! folder_permissions = wato.get_folder_permissions_of_users(users) else: folder_permissions = {} contactgroups = load_group_information().get('contact', {}) groups = {} for gid, group in contactgroups.items(): if 'nagvis_maps' in group and group['nagvis_maps']: groups[gid] = group['nagvis_maps'] create_php_file(callee, users, config.get_role_permissions(), groups, folder_permissions)
def create_auth_file(users): make_nagios_directory(g_auth_base_dir) import wato # HACK: cleanup! create_php_file(users, config.get_role_permissions(), wato.get_folder_permissions_of_users(users))
def create_auth_file(callee, users): make_nagios_directory(g_auth_base_dir) import wato # HACK: cleanup! create_php_file(callee, users, config.get_role_permissions(), wato.get_folder_permissions_of_users(users))