[policy in code] Add support for replicas, networks and security services [7/10]
This patch adds policy in code support for replica, network and security service resources. Change-Id: I9a79b5ececc583e85149cc920950e462e805b245 Partial-Implements: blueprint policy-in-code
This commit is contained in:
@@ -215,7 +215,8 @@ def check_policy(context, resource, action, target_obj=None):
|
||||
'share_snapshot_instance_export_location',
|
||||
'quota_set', 'quota_class_set', 'service',
|
||||
'share_server', 'share_group', 'share_group_snapshot',
|
||||
'share_group_type', 'share_group_types_spec', ):
|
||||
'share_group_type', 'share_group_types_spec',
|
||||
'share_replica', 'share_network', 'security_service', ):
|
||||
authorize(context, _action, target)
|
||||
else:
|
||||
enforce(context, _action, target)
|
||||
|
||||
Reference in New Issue
Block a user