mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-07-14 05:15:52 +00:00
push: remove namespace: improve missing Modify priv error
to make it easier to distinguish from missing "Prune" privs when removing vanished groups. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
90900fd017
commit
70acf0f1df
@ -194,7 +194,7 @@ async fn remove_target_namespace(
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_ns_remote_datastore_privs(params, target_namespace, PRIV_REMOTE_DATASTORE_MODIFY)
|
check_ns_remote_datastore_privs(params, target_namespace, PRIV_REMOTE_DATASTORE_MODIFY)
|
||||||
.map_err(|err| format_err!("Pruning remote datastore contents not allowed - {err}"))?;
|
.map_err(|err| format_err!("Pruning remote datastore namespaces not allowed - {err}"))?;
|
||||||
|
|
||||||
let api_path = params.target.datastore_api_path("namespace");
|
let api_path = params.target.datastore_api_path("namespace");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user