Add polkit rule to allow users in sysadmin group to launch actions with no password

This commit is contained in:
Silvan Calarco 2015-02-19 11:16:38 +01:00
parent 1df6c3140d
commit faf10f0645

View File

@ -0,0 +1,5 @@
/* Allow members of the sysadmin group to execute any actions
without password authentication */
polkit.addRule(function(action, subject) {
if (subject.isInGroup("sysadmin")) { return polkit.Result.YES; }
});