From a46b473c146e28c7f1afb67b6c0d5bbd3e3e6b08 Mon Sep 17 00:00:00 2001 From: Bryant Howell Date: Thu, 21 May 2020 14:33:37 -0500 Subject: [PATCH] Updated because available_capabilities is now only accessed through the Permissions class rather than the main rest_api object --- examples/permissions_auditing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/permissions_auditing.py b/examples/permissions_auditing.py index b9dce8d..b6e4d74 100644 --- a/examples/permissions_auditing.py +++ b/examples/permissions_auditing.py @@ -23,13 +23,13 @@ headers = ['Site Content URL', 'Project Name', 'Project LUID', 'Are Permissions Locked?', 'Principal Type', 'Principal Name', 'Principal LUID'] - project_caps = default.available_capabilities[default.api_version]['project'] + project_caps = Permissions.available_capabilities[default.api_version]['project'] for cap in project_caps: headers.append(',{}'.format(cap)) - workbook_caps = default.available_capabilities[default.api_version]['workbook'] + workbook_caps = Permissions.available_capabilities[default.api_version]['workbook'] for cap in workbook_caps: headers.append(',{}'.format(cap)) - datasource_caps = default.available_capabilities[default.api_version]['datasource'] + datasource_caps = Permissions.available_capabilities[default.api_version]['datasource'] for cap in datasource_caps: headers.append(',{}'.format(cap)) output_writer.writerow(headers)