diff --git a/src/auth.rs b/src/auth.rs index cc28b3ba..0bc95ee5 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -195,8 +195,8 @@ impl<'a, 'r> FromRequest<'a, 'r> for OrgHeaders { Outcome::Forward(f) => Outcome::Forward(f), Outcome::Failure(f) => Outcome::Failure(f), Outcome::Success(headers) => { - // org_id is expected to be the first dynamic param - match request.get_param::(0) { + // org_id is expected to be the second param ("/organizations/") + match request.get_param::(1) { Some(Ok(org_id)) => { let conn = match request.guard::() { Outcome::Success(conn) => conn,