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:
Fabian Grünbichler 2024-11-20 16:46:36 +01:00
parent 90900fd017
commit 70acf0f1df

View File

@ -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");