mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ export enum Permission {
|
|||
ServerApkLinks = 'server.apkLinks',
|
||||
ServerStorage = 'server.storage',
|
||||
ServerStatistics = 'server.statistics',
|
||||
ServerVersionCheck = 'server.versionCheck',
|
||||
|
||||
ServerLicenseRead = 'serverLicense.read',
|
||||
ServerLicenseUpdate = 'serverLicense.update',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue