#400 add defanged_admin config to allow disabling of risky actions
This commit is contained in:
@@ -44,7 +44,7 @@ foreach my $action (@{ setting('job_prio')->{high} },
|
||||
};
|
||||
}
|
||||
|
||||
ajax qr{/ajax/control/admin/(?:\w+/)?delete} => require_role admin => sub {
|
||||
ajax qr{/ajax/control/admin/(?:\w+/)?delete} => require_role setting('defanged_admin') => sub {
|
||||
send_error('Missing device', 400) unless param('device');
|
||||
|
||||
my $device = NetAddr::IP->new(param('device'));
|
||||
|
||||
Reference in New Issue
Block a user