[pve-devel] [PATCH v2 access-control 01/23] user.cfg: ensure propagate flag is 1/0 when parsing
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Nov 21 15:43:19 CET 2019
otherwise this might end up as (arbitrary) string somewhere..
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
PVE/AccessControl.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
index aff9137..2a4fe14 100644
--- a/PVE/AccessControl.pm
+++ b/PVE/AccessControl.pm
@@ -965,6 +965,8 @@ sub parse_user_config {
} elsif ($et eq 'acl') {
my ($propagate, $pathtxt, $uglist, $rolelist) = @data;
+ $propagate = $propagate ? 1 : 0;
+
if (my $path = normalize_path($pathtxt)) {
foreach my $role (split_list($rolelist)) {
--
2.20.1
More information about the pve-devel
mailing list