api: namespace management endpoints

allow to list any namespace with privileges on it and allow to create
and delete namespaces if the user has modify permissions on the parent
namespace.

Creation is only allowed if the parent NS already exists.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht committed 2022-05-12 09:33:50 +02:00
1 parent 15a9272495
commit 18934ae56b
5 files changed
+212

No files matched your search

+3
View File
@@ -85,6 +85,9 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
if components_len <= 2 {
return Ok(());
}
if components_len > 2 && components_len <= 2 + pbs_api_types::MAX_NAMESPACE_DEPTH {
return Ok(());
}
}
"remote" => {
// /remote/{remote}/{store}