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:
1 parent
15a9272495
commit
18934ae56b
5 files changed
+212
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user