mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-24 05:46:39 +00:00
Create clients working again
This commit is contained in:
@@ -30,7 +30,7 @@ const createClientParamsSchema = z
|
||||
const createClientSchema = z
|
||||
.object({
|
||||
name: z.string().min(1).max(255),
|
||||
siteIds: z.array(z.string().transform(Number).pipe(z.number())),
|
||||
siteIds: z.array(z.number().int().positive()),
|
||||
olmId: z.string(),
|
||||
secret: z.string(),
|
||||
type: z.enum(["olm"])
|
||||
|
||||
@@ -102,8 +102,8 @@ authenticated.get(
|
||||
);
|
||||
|
||||
authenticated.get(
|
||||
"/pick-client-defaults",
|
||||
verifySiteAccess,
|
||||
"/org/:orgId/pick-client-defaults",
|
||||
verifyOrgAccess,
|
||||
verifyUserHasAction(ActionsEnum.createClient),
|
||||
client.pickClientDefaults
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user