core/udisks2/10-enable-mount.rules

6 lines
184 B
Plaintext
Raw Normal View History

2014-01-04 06:35:41 +08:00
polkit.addRule(function(action, subject) {
if (action.id == “org.freedesktop.udisks2.filesystem-mount-system” &&
subject.isInGroup(“storage”)) {
return polkit.Result.YES;
}
});