diff --git a/server/src/handlers/organization_handler.rs b/server/src/handlers/organization_handler.rs index 2f046987a4..bce2232a12 100644 --- a/server/src/handlers/organization_handler.rs +++ b/server/src/handlers/organization_handler.rs @@ -453,7 +453,7 @@ pub struct CreateApiKeyResponse { ) )] pub async fn create_organization_api_key( - _user: LoggedUser, + _user: AdminOnly, data: web::Json, organization: OrganizationWithSubAndPlan, pool: web::Data,