mirror of
https://github.com/immich-app/immich.git
synced 2025-10-31 01:37:45 +09:00
feat: add server.versionCheck permission (#20555)
* add server.versionCheck permission * getVersionCheck is no admin-route
This commit is contained in:
@@ -109,7 +109,7 @@ export class ServerController {
|
||||
}
|
||||
|
||||
@Get('version-check')
|
||||
@Authenticated()
|
||||
@Authenticated({ permission: Permission.ServerVersionCheck })
|
||||
getVersionCheck(): Promise<VersionCheckStateResponseDto> {
|
||||
return this.systemMetadataService.getVersionCheckState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user