1
0
Fork 0
mirror of synced 2024-06-16 05:41:08 -04:00

fix polkit rules

This commit is contained in:
librewish 2021-02-19 17:54:11 +05:30
parent 6bed3b3c3f
commit 19bb57c776

View file

@ -16,7 +16,7 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount" || action.id == "org.freedesktop.udisks2.filesystem-mount" ||
action id == "org.freedesktop.udisks2.filesystem-mount-other-seat" || action.id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
action.id == "org.freedesktop.udisks.filesystem-fstab") && action.id == "org.freedesktop.udisks.filesystem-fstab") &&
subject.isInGroup("wheel")) subject.isInGroup("wheel"))
{ {
@ -61,7 +61,7 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if ((action.id == "org.archlinux.pkexec.gparted" || if ((action.id == "org.archlinux.pkexec.gparted" ||
action id == "org.kde.kpmcore.externalcommand.init") && action.id == "org.kde.kpmcore.externalcommand.init") &&
subject.isInGroup("wheel")) subject.isInGroup("wheel"))
{ {
return polkit.Result.YES; return polkit.Result.YES;