Skip to content

Commit

Permalink
Updated because available_capabilities is now only accessed through t…
Browse files Browse the repository at this point in the history
…he Permissions class rather than the main rest_api object
  • Loading branch information
Bryant Howell committed May 21, 2020
1 parent 3003724 commit a46b473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/permissions_auditing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a46b473

Please sign in to comment.