Difference between revisions of "Manjaro Polkit Rules/ru"

Created page with "polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) { return polkit.Result.YES;..."
(Created page with "Это первое правило позволяет пользователю, входящему в административную группу ''wheel'', работать...")
(Created page with "polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) { return polkit.Result.YES;...")
Line 23: Line 23:
  });
  });
   
   
The second rule allows any user to control if the system should be shut down or restarted
Второе правило позволяет любому пользователю контролировать, должна ли система быть выключена или перезапущена


  polkit.addRule(function(action, subject) {
  polkit.addRule(function(action, subject) {
translator
10,769

edits