mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +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
|
|
@ -6506,7 +6506,9 @@
|
|||
],
|
||||
"tags": [
|
||||
"Server"
|
||||
]
|
||||
],
|
||||
"x-immich-permission": "server.versionCheck",
|
||||
"description": "This endpoint requires the `server.versionCheck` permission."
|
||||
}
|
||||
},
|
||||
"/server/version-history": {
|
||||
|
|
@ -12631,6 +12633,7 @@
|
|||
"server.apkLinks",
|
||||
"server.storage",
|
||||
"server.statistics",
|
||||
"server.versionCheck",
|
||||
"serverLicense.read",
|
||||
"serverLicense.update",
|
||||
"serverLicense.delete",
|
||||
|
|
|
|||
|
|
@ -3552,6 +3552,9 @@ export function getServerVersion(opts?: Oazapfts.RequestOpts) {
|
|||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* This endpoint requires the `server.versionCheck` permission.
|
||||
*/
|
||||
export function getVersionCheck(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
|
|
@ -4616,6 +4619,7 @@ export enum Permission {
|
|||
ServerApkLinks = "server.apkLinks",
|
||||
ServerStorage = "server.storage",
|
||||
ServerStatistics = "server.statistics",
|
||||
ServerVersionCheck = "server.versionCheck",
|
||||
ServerLicenseRead = "serverLicense.read",
|
||||
ServerLicenseUpdate = "serverLicense.update",
|
||||
ServerLicenseDelete = "serverLicense.delete",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue