mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
feat: add server.versionCheck permission (#20555)
* add server.versionCheck permission * getVersionCheck is no admin-route
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user