#975 RBAC for port control with new portctl_by_role setting
This commit is contained in:
@@ -19,7 +19,7 @@ register_worker({ phase => 'check' }, sub {
|
||||
or return Status->error(sprintf "Unknown port name [%s] on device %s",
|
||||
$job->port, $job->device);
|
||||
|
||||
my $port_reconfig_check = port_reconfig_check(vars->{'port'});
|
||||
my $port_reconfig_check = port_reconfig_check(vars->{'port'}, $job, $job->username);
|
||||
return Status->error("Cannot alter port: $port_reconfig_check")
|
||||
if $port_reconfig_check;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user