3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01: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')) { 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) { if (grep { $_ eq $key } @disallowed) {
return "The $key metadata requires the admin capability to set, which your user account does not have."; return "The $key metadata requires the admin capability to set, which your user account does not have.";
} }