add model for admin key table

This commit is contained in:
Alex Auvolat
2025-03-11 13:09:19 +01:00
parent 576d0d950e
commit 46f620119b
6 changed files with 184 additions and 3 deletions
+1 -3
View File
@@ -243,9 +243,7 @@ impl AdminApiRequest {
/// Get the kind of authorization which is required to perform the operation.
pub fn authorization_type(&self) -> Authorization {
match self {
Self::Options(_) => Authorization::None,
Self::Health(_) => Authorization::None,
Self::CheckDomain(_) => Authorization::None,
Self::Options(_) | Self::Health(_) | Self::CheckDomain(_) => Authorization::None,
Self::Metrics(_) => Authorization::MetricsToken,
_ => Authorization::AdminToken,
}