mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 04:23:30 +00:00
fix: Use ApiFullAccess as required scope for NoAccessToken endpoints
This commit is contained in:
1 parent
a8a6ab9e3d
commit
2fdd59ae54
1 file changed
+5
-3
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user