summaryrefslogtreecommitdiff
path: root/nova/policies/instance_usage_audit_log.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/policies/instance_usage_audit_log.py')
-rw-r--r--nova/policies/instance_usage_audit_log.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/policies/instance_usage_audit_log.py b/nova/policies/instance_usage_audit_log.py
index 98ab12c52e..7884134e4a 100644
--- a/nova/policies/instance_usage_audit_log.py
+++ b/nova/policies/instance_usage_audit_log.py
@@ -36,7 +36,7 @@ DEPRECATED_POLICY = policy.DeprecatedRule(
instance_usage_audit_log_policies = [
policy.DocumentedRuleDefault(
name=BASE_POLICY_NAME % 'list',
- check_str=base.SYSTEM_READER,
+ check_str=base.ADMIN,
description="List all usage audits.",
operations=[
{
@@ -44,11 +44,11 @@ instance_usage_audit_log_policies = [
'path': '/os-instance_usage_audit_log'
},
],
- scope_types=['system'],
+ scope_types=['project'],
deprecated_rule=DEPRECATED_POLICY),
policy.DocumentedRuleDefault(
name=BASE_POLICY_NAME % 'show',
- check_str=base.SYSTEM_READER,
+ check_str=base.ADMIN,
description="List all usage audits occurred before "
"a specified time for all servers on all compute hosts where "
"usage auditing is configured",
@@ -59,7 +59,7 @@ instance_usage_audit_log_policies = [
'path': '/os-instance_usage_audit_log/{before_timestamp}'
}
],
- scope_types=['system'],
+ scope_types=['project'],
deprecated_rule=DEPRECATED_POLICY),
]