allow basic auth on devices/owner

This commit is contained in:
Andrea Toska 2025-04-26 18:21:41 +02:00
commit c61db2c47d
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2

View file

@ -265,7 +265,7 @@ pub fn get_own_profile(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
}
#[get("/v1/api/people/@me/devices/owner")]
pub fn get_device_owner(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
pub fn get_device_owner(user: Auth<true>) -> Ds<Xml<GetOwnProfileData>>{
build_own_profile(user)
}