Skip to content

Commit b5ad286

Browse files
committed
sec: bump permission on creating an organization_api_key
1 parent 9f0184b commit b5ad286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/handlers/organization_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub struct CreateApiKeyResponse {
509509
)
510510
)]
511511
pub async fn create_organization_api_key(
512-
_user: LoggedUser,
512+
_user: AdminOnly,
513513
data: web::Json<CreateApiKeyReqPayload>,
514514
organization: OrganizationWithSubAndPlan,
515515
pool: web::Data<Pool>,

0 commit comments

Comments
 (0)