From: Dietmar Maurer Date: Thu, 1 Mar 2012 11:38:46 +0000 (+0100) Subject: set propagate flag by default X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=e2993b66c3f119dd8c5e724958e99d82a15ba2c0;hp=bdc61d7a1801e690a68a264f1c9c22963eeb5df8 set propagate flag by default --- diff --git a/PVE/API2/ACL.pm b/PVE/API2/ACL.pm index 45be4ec..84d7549 100644 --- a/PVE/API2/ACL.pm +++ b/PVE/API2/ACL.pm @@ -114,6 +114,7 @@ __PACKAGE__->register_method ({ description => "Allow to propagate (inherit) permissions.", type => 'boolean', optional => 1, + default => 1, }, delete => { description => "Remove permissions (instead of adding it).", @@ -140,7 +141,11 @@ __PACKAGE__->register_method ({ my $cfg = cfs_read_file("user.cfg"); - my $propagate = $param->{propagate} ? 1 : 0; + my $propagate = 1; + + if (defined($param->{propagate})) { + $propagate = $param->{propagate} ? 1 : 0; + } foreach my $role (split_list($param->{roles})) { die "role '$role' does not exist\n"