Skip to content

Commit

Permalink
Merge pull request #518 from Dokploy/515-non-admin-users-are-not-able…
Browse files Browse the repository at this point in the history
…-to-set-up-database-backup

fix(destinations): change admin to protected procedure
  • Loading branch information
Siumauricio authored Oct 3, 2024
2 parents 4aaf04c + 9745d12 commit b5c0876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dokploy/server/api/routers/destination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const destinationRouter = createTRPCRouter({
const destination = await findDestinationById(input.destinationId);
return destination;
}),
all: adminProcedure.query(async () => {
all: protectedProcedure.query(async () => {
return await db.query.destinations.findMany({});
}),
remove: adminProcedure
Expand Down

0 comments on commit b5c0876

Please sign in to comment.