fix: Use ApiFullAccess as required scope for NoAccessToken endpoints

This commit is contained in:
Ginger authored and Ellis Git committed 2026-10-05 14:22:53 +00:00
1 parent a8a6ab9e3d
commit 2fdd59ae54
1 file changed
+5 -3
+5 -3
View File
@@ -261,9 +261,11 @@ async fn check<R: IncomingRequest<Authentication = Self> + Any>(
})?;
if let Some(authentication) = authentication {
check_access_token(services, &authentication, query, TypeId::of::<R>(), &[])
.await
.map(Some)
check_access_token(services, &authentication, query, TypeId::of::<R>(), &[
OAuthClientScope::ApiFullAccess,
])
.await
.map(Some)
} else {
Ok(None)
}