mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 02:08:20 +02:00 
			
		
		
		
	Fixed change in organizations header, now Request::get_param() are indexed by segment, not dynamic parameter.
This commit is contained in:
		| @@ -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::<String>(0) { | ||||
|                 // org_id is expected to be the second param ("/organizations/<org_id>") | ||||
|                 match request.get_param::<String>(1) { | ||||
|                     Some(Ok(org_id)) => { | ||||
|                         let conn = match request.guard::<DbConn>() { | ||||
|                             Outcome::Success(conn) => conn, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user