ui: tape/Restore: let the user choose an owner

so that the tape backup can be restored as any user, given
the current logged in user has the correct permission.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-03-12 11:28:41 +01:00
committed by Dietmar Maurer
parent 5a5ee0326e
commit e36135031d
3 changed files with 38 additions and 1 deletions

View File

@ -27,6 +27,7 @@ use proxmox_backup::{
api2::{
self,
types::{
Authid,
DATASTORE_SCHEMA,
DRIVE_NAME_SCHEMA,
MEDIA_LABEL_SCHEMA,
@ -868,6 +869,10 @@ async fn backup(mut param: Value) -> Result<(), Error> {
type: Userid,
optional: true,
},
owner: {
type: Authid,
optional: true,
},
"output-format": {
schema: OUTPUT_FORMAT,
optional: true,