Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Dec 17, 2021
1 parent 3f322dc commit 00ac778
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nexus/src/authz/api_resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ impl Fleet {
/// Returns an authz resource representing some other kind of child (e.g.,
/// a built-in user, built-in role, etc. -- but _not_ an Organization)
///
/// Aside from Organizations (which you create with [`Fleet::organization()`
/// instead), all instances of all types of Fleet children are treated
/// interchangeably by the authz subsystem. That's because we do not
/// currently support assigning roles to these resources, so all that
/// matters for authz is that they are a child of the Fleet.
/// Aside from Organizations (which you create with
/// [`Fleet::organization()`] instead), all instances of all types of Fleet
/// children are treated interchangeably by the authz subsystem. That's
/// because we do not currently support assigning roles to these resources,
/// so all that matters for authz is that they are a child of the Fleet.
pub fn child_generic(&self) -> FleetChild {
FleetChild {}
}
Expand Down Expand Up @@ -109,7 +109,7 @@ impl oso::PolarClass for FleetChild {
/* Roles are not supported on FleetChilds today. */
|_: &FleetChild, _: AuthenticatedActor, _: String| false,
)
.add_attribute_getter("fleet", |_: &FleetChild| Fleet {})
.add_attribute_getter("fleet", |_: &FleetChild| FLEET)
}
}

Expand All @@ -119,7 +119,7 @@ impl AuthzApiResource for FleetChild {
}

fn parent(&self) -> Option<Box<dyn AuthzResource>> {
Some(Box::new(Fleet {}))
Some(Box::new(FLEET))
}
}

Expand Down

0 comments on commit 00ac778

Please sign in to comment.