mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-06-14 09:56:53 +00:00
set propagate flag by default
This commit is contained in:
parent
bdc61d7a18
commit
e2993b66c3
@ -114,6 +114,7 @@ __PACKAGE__->register_method ({
|
|||||||
description => "Allow to propagate (inherit) permissions.",
|
description => "Allow to propagate (inherit) permissions.",
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
|
default => 1,
|
||||||
},
|
},
|
||||||
delete => {
|
delete => {
|
||||||
description => "Remove permissions (instead of adding it).",
|
description => "Remove permissions (instead of adding it).",
|
||||||
@ -140,7 +141,11 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
my $cfg = cfs_read_file("user.cfg");
|
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})) {
|
foreach my $role (split_list($param->{roles})) {
|
||||||
die "role '$role' does not exist\n"
|
die "role '$role' does not exist\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user