This will be needed for ACL paths for the notification system,
which will get separate namespaces for targets and matchers:

/mapping/notification/targets/<name>
as well as
/mapping/notification/matchers/<name>

Signed-off-by: Lukas Wagner <[email protected]>
---
 src/PVE/AccessControl.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm
index cc0f00b..22aef69 100644
--- a/src/PVE/AccessControl.pm
+++ b/src/PVE/AccessControl.pm
@@ -1277,6 +1277,7 @@ sub check_path {
        |/mapping
        |/mapping/[[:alnum:]\.\-\_]+
        |/mapping/[[:alnum:]\.\-\_]+/[[:alnum:]\.\-\_]+
+       |/mapping/[[:alnum:]\.\-\_]+/[[:alnum:]\.\-\_]+/[[:alnum:]\.\-\_]+
     )$!xs;
 }
 
-- 
2.39.2



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to