9 lines
323 B
Plaintext
9 lines
323 B
Plaintext
// ACPC 2026: the teams may not mount USB sticks, disks or disk images.
|
|
// Only the administrators (sudo group) keep the udisks actions.
|
|
polkit.addRule(function(action, subject) {
|
|
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 &&
|
|
!subject.isInGroup("sudo")) {
|
|
return polkit.Result.NO;
|
|
}
|
|
});
|