mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: add server.versionCheck permission (#20555)
* add server.versionCheck permission * getVersionCheck is no admin-route
This commit is contained in:
parent
42b78c59b5
commit
a91bb399f0
6 changed files with 17 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ export class ServerController {
|
|||
}
|
||||
|
||||
@Get('version-check')
|
||||
@Authenticated()
|
||||
@Authenticated({ permission: Permission.ServerVersionCheck })
|
||||
getVersionCheck(): Promise<VersionCheckStateResponseDto> {
|
||||
return this.systemMetadataService.getVersionCheckState();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue