{
    "context_is_admin": [["role:admin"]],
    "admin_or_owner":  [["is_admin:True"], ["project_id:%(project_id)s"]],
    "default": [["rule:admin_or_owner"]],

    "admin_api": [["is_admin:True"]],

    "share:create": [],
    "share:get_all": ["project_id:%(project_id)s"],
    "share:get_snapshot": ["project_id:%(project_id)s"],
    "share:get_all_snapshots": ["project_id:%(project_id)s"],

    "share_extension:quotas:show": [],
    "share_extension:quotas:update_for_project": [["rule:admin_api"]],
    "share_extension:quotas:update_for_user": [["rule:admin_or_projectadmin"]],
    "share_extension:quota_classes": [],

    "share_extension:services": [["rule:admin_api"]]
}

{
    "context_is_admin": [["role:admin"]],
    "admin_or_owner":  [["is_admin:True"], ["project_id:%(project_id)s"]],
    "default": [["rule:admin_or_owner"]],

    "admin_api": [["is_admin:True"]],

    "share:create": [],
    "share:get_all": ["project_id:%(project_id)s"],
    "share:get_snapshot": ["project_id:%(project_id)s"],
    "share:get_all_snapshots": ["project_id:%(project_id)s"],

    "share_extension:quotas:show": [],
    "share_extension:quotas:update_for_project": [["rule:admin_api"]],
    "share_extension:quotas:update_for_user": [["rule:admin_or_projectadmin"]],
    "share_extension:quota_classes": [],

    "share_extension:share_admin_actions:reset_status": [["rule:admin_api"]],
    "share_extension:snapshot_admin_actions:reset_status": [["rule:admin_api"]],

    "share_extension:services": [["rule:admin_api"]]
}

Fix bug with full access to reset-state
Fix bug with full access to reset-state

"Reset state" commands should be available only for admins.

Change-Id: I34116212e91988f0282f7045449be61f581a3fce
Closes-Bug: #1267432
