mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-13 23:49:31 +01:00
6 lines
206 B
Plaintext
6 lines
206 B
Plaintext
|
// require admin login for all polkit actions
|
||
|
// e.g. NetworkManager, shutdown, reboot, etc now require root password
|
||
|
polkit.addRule(function(action, subject) {
|
||
|
return polkit.Result.AUTH_ADMIN;
|
||
|
});
|