mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
feat(access-control): update certificate permissions to include 'update' action
- Modified the access control settings for the 'certificate' resource to allow 'update' permissions for admin and owner roles. - Updated the certificate router to use the new permission structure for the update mutation.
This commit is contained in:
@@ -76,7 +76,7 @@ export const certificateRouter = createTRPCRouter({
|
||||
where: eq(certificates.organizationId, ctx.session.activeOrganizationId),
|
||||
});
|
||||
}),
|
||||
update: adminProcedure
|
||||
update: withPermission("certificate", "update")
|
||||
.input(apiUpdateCertificate)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
const certificate = await findCertificateById(input.certificateId);
|
||||
|
||||
Reference in New Issue
Block a user