mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 05:36:37 +08:00
修复pkexec规则错误
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user