Enable users to list subnets on shared networks
Fixes bug 1039591 This patch will enable regular users to list subnets on a shared network by exposing the subnet's "shared" attribute to the policy engine, and letting it applying different rules if the subnet is shared or private. Change-Id: If204f1e352c114e16251586c743f5b7fe2d1ad7d
This commit is contained in:
parent
1dd6db3b18
commit
15ee1a3cc3
|
@ -13,8 +13,13 @@
|
|||
"networks:shared:read": [["rule:regular_user"]],
|
||||
"networks:shared:write": [["rule:admin_only"]],
|
||||
|
||||
"subnets:private:read": [["rule:admin_or_owner"]],
|
||||
"subnets:private:write": [["rule:admin_or_owner"]],
|
||||
"subnets:shared:read": [["rule:regular_user"]],
|
||||
"subnets:shared:write": [["rule:admin_only"]],
|
||||
|
||||
"create_subnet": [["rule:admin_or_network_owner"]],
|
||||
"get_subnet": [["rule:admin_or_owner"]],
|
||||
"get_subnet": [],
|
||||
"update_subnet": [["rule:admin_or_network_owner"]],
|
||||
"delete_subnet": [["rule:admin_or_network_owner"]],
|
||||
|
||||
|
|
Loading…
Reference in New Issue