mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
fix: use create permission for basic auth delete instead of delete (#4513)
This commit is contained in:
@@ -45,7 +45,7 @@ export const securityRouter = createTRPCRouter({
|
|||||||
.mutation(async ({ input, ctx }) => {
|
.mutation(async ({ input, ctx }) => {
|
||||||
const security = await findSecurityById(input.securityId);
|
const security = await findSecurityById(input.securityId);
|
||||||
await checkServicePermissionAndAccess(ctx, security.applicationId, {
|
await checkServicePermissionAndAccess(ctx, security.applicationId, {
|
||||||
service: ["delete"],
|
service: ["create"],
|
||||||
});
|
});
|
||||||
const result = await deleteSecurityById(input.securityId);
|
const result = await deleteSecurityById(input.securityId);
|
||||||
await audit(ctx, {
|
await audit(ctx, {
|
||||||
|
|||||||
Reference in New Issue
Block a user