Translations:Manjaro Polkit Rules/9/ru

Revision as of 07:06, 2 February 2023 by Krotesk (talk | contribs) (Created page with "polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) { return polkit.Result.YES;...")
(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;
    }
});

Второе правило позволяет любому пользователю контролировать, должна ли система быть выключена или перезапущена