Skip to content

Commit

Permalink
Cherry-pick #939 to 3.2.x (#940)
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Disselkoen <[email protected]>
Co-authored-by: Victor Moreno <[email protected]>
  • Loading branch information
cdisselkoen and Swolebrain authored May 31, 2024
1 parent 8ef2571 commit ff5bd0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cedar-policy/src/ffi/is_authorized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,13 @@ pub enum PartialAuthorizationAnswer {
#[serde(rename_all = "camelCase")]
pub struct AuthorizationCall {
/// The principal taking action
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
principal: Option<JsonValueWithNoDuplicateKeys>,
/// The action the principal is taking
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
action: JsonValueWithNoDuplicateKeys,
/// The resource being acted on by the principal
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
resource: Option<JsonValueWithNoDuplicateKeys>,
/// The context details specific to the request
#[serde_as(as = "MapPreventDuplicates<_, _>")]
Expand Down

0 comments on commit ff5bd0a

Please sign in to comment.