From 2bb6a48545ef1ffce6accc64eac0431ce9022dc6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 12 Mar 2022 08:55:58 +0100 Subject: [PATCH] Did a TODO --- src/controllers/admin/admin_keys_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/admin/admin_keys_controller.rs b/src/controllers/admin/admin_keys_controller.rs index 46d9b3d..3109edf 100644 --- a/src/controllers/admin/admin_keys_controller.rs +++ b/src/controllers/admin/admin_keys_controller.rs @@ -94,7 +94,7 @@ pub async fn delete_auth_key(r: &mut HttpRequestHandler) -> RequestResult { let key_id = r.post_u64("keyID")?; if admin_id != r.admin_id()? { - unimplemented!(); // TODO + r.check_admin_has_role(AdminRole::MANAGE_ADMINS)?; } for key in admin_account_key_helper::get_admin_keys(admin_id)? {