Manjaro Translations:Manjaro Polkit Rules/9/en

Translations:Manjaro Polkit Rules/9/en

From Manjaro
Revision as of 18:11, 7 September 2021 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.