修复pkexec规则错误

This commit is contained in:
2024-03-02 13:04:06 +08:00
parent 1804c27408
commit 7864c396b3
+1 -1
View File
@@ -4,7 +4,7 @@
// for each client process using the different action id and for the subject // for each client process using the different action id and for the subject
// based on the client process. // based on the client process.
polkit.addRule(function(action, subject) { polkit.addRule(function(action, subject) {
if (if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system") && if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system") &&
subject.local && subject.local &&
subject.active && subject.active &&
subject.isInGroup ("sudo")) { subject.isInGroup ("sudo")) {