core/udisks2/10-enable-mount.rules

7 lines
177 B
Plaintext
Raw Normal View History

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