3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Users: my: lock chanop and admin capabilities behind admin capability

This commit is contained in:
Pragmatic Software 2020-02-09 21:08:52 -08:00
parent 90a5c47f4b
commit cfc3ad855f

View File

@ -555,7 +555,7 @@ sub mycmd {
}
if (not $self->{pbot}->{capabilities}->userhas($u, 'admin')) {
my @disallowed = qw/name autoop autovoice/;
my @disallowed = qw/name autoop autovoice chanop admin/;
if (grep { $_ eq $key } @disallowed) {
return "The $key metadata requires the admin capability to set, which your user account does not have.";
}