mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1167 from Dokploy/fix/creation-users
refactor: make protected instead of admin
This commit is contained in:
@@ -345,7 +345,7 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
writeConfig("middlewares", input.traefikConfig);
|
writeConfig("middlewares", input.traefikConfig);
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
getUpdateData: adminProcedure.mutation(async () => {
|
getUpdateData: protectedProcedure.mutation(async () => {
|
||||||
if (IS_CLOUD) {
|
if (IS_CLOUD) {
|
||||||
return DEFAULT_UPDATE_DATA;
|
return DEFAULT_UPDATE_DATA;
|
||||||
}
|
}
|
||||||
@@ -373,10 +373,10 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
getDokployVersion: adminProcedure.query(() => {
|
getDokployVersion: protectedProcedure.query(() => {
|
||||||
return packageInfo.version;
|
return packageInfo.version;
|
||||||
}),
|
}),
|
||||||
getReleaseTag: adminProcedure.query(() => {
|
getReleaseTag: protectedProcedure.query(() => {
|
||||||
return getDokployImageTag();
|
return getDokployImageTag();
|
||||||
}),
|
}),
|
||||||
readDirectories: protectedProcedure
|
readDirectories: protectedProcedure
|
||||||
|
|||||||
Reference in New Issue
Block a user