Skip to content

Commit 84d6ebe

Browse files
committed
startup fixes
1 parent 80f1e92 commit 84d6ebe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

service/src/app-models/logging/setup-logging-storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ export const setupLoggingStorage = async (injector: Injector) => {
8080
authorizeGet: withRole('admin'),
8181
authorizeUpdate: alwaysDeny,
8282
authorizeRemove: alwaysDeny,
83-
authorizeAdd: alwaysDeny,
83+
authorizeAdd: withRole('admin'),
8484
})
8585
}

service/src/patcher/setup-patcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ export const setupPatcher = async (injector: Injector) => {
8383
})
8484

8585
getRepository(injector).createDataSet(PatchRun, 'id', {
86-
authorizeAdd: alwaysDeny,
86+
authorizeAdd: withRole('admin'),
8787
authorizeGet: withRole('admin'),
8888
authorizeRemove: alwaysDeny,
89-
authorizeUpdate: alwaysDeny,
89+
authorizeUpdate: withRole('admin'),
9090
})
9191

9292
const systemInjector = useSystemIdentityContext({ injector, username: 'patcher' })

0 commit comments

Comments
 (0)