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
|
|
@ -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