Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Feb 15, 2025
1 parent a8433ad commit 7c0a173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async fn handle_prune_async(
) -> Result<HttpResponse, ApiError> {
req.validate_claims(|claims| {
if !claims.scope.contains(&ClaimsScope::TokenManagement) {
return Err(ApiError::token_insufficient("Missing TokenManagement scope"));
return Err(ApiError::NotEnoughPermissions("Missing TokenManagement scope".to_string()));
}
Ok(())
})?;
Expand Down

0 comments on commit 7c0a173

Please sign in to comment.