12345678910 |
- // Allow udisks2 to mount devices without authentication
- // for users in the "storage" group.
- polkit.addRule(function(action, subject) {
- if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
- action.id == "org.freedesktop.udisks2.filesystem-mount") &&
- subject.isInGroup("storage")) {
- return polkit.Result.YES;
- }
- });
|