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)? {