ansible/roles/thinlinc_server/files/40-thinlinc-no-auth-dialogs.rules

21 lines
791 B
Text

polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.color-manager.create-device" ||
action.id == "org.freedesktop.color-manager.create-profile" ||
action.id == "org.freedesktop.color-manager.delete-device" ||
action.id == "org.freedesktop.color-manager.delete-profile" ||
action.id == "org.freedesktop.color-manager.modify-device" ||
action.id == "org.freedesktop.color-manager.modify-profile") {
if (!subject.local) {
return polkit.Result.NO;
}
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.packagekit.system-network-proxy-configure" ||
action.id == "org.freedesktop.packagekit.system-sources-refresh") {
if (!subject.local) {
return polkit.Result.NO;
}
}
});