Difference between revisions of "Translations:Manjaro Polkit Rules/9/en"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
(Importing a new version from external source) |
(No difference)
|
Latest revision as of 18:11, 7 September 2021
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
The second rule allows any user to control if the system should be shut down or restarted