---
source: cedar-policy-formatter/src/pprint/fmt.rs
expression: formatted
input_file: cedar-policy-cli/sample-data/sandbox_a/policies_2.cedar
---
// Alice can view, edit, or delete any photo in the "jane_vacation" album
@id("alice's access policy")
permit (
  principal == User::"alice",
  action in [Action::"view", Action::"edit", Action::"delete"],
  resource in Album::"jane_vacation"
);

// Bob can only view things in the "jane_vacation" album
@id("bob's view policy")
permit (
  principal == User::"bob",
  action == Action::"view",
  resource in Album::"jane_vacation"
);
