summaryrefslogtreecommitdiff
path: root/roles/kodi/standalone/templates/polkit.rules.j2
blob: 20f01b29ba95573c90e6f39f731ea9680d0e96da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
polkit.addRule(function(action, subject) {
    if (subject.user == "kodi") {
        if (action.id.indexOf("org.freedesktop.login1.") == 0) {
            return polkit.Result.YES;
        }
        if (action.id.indexOf("org.freedesktop.udisks.") == 0) {
            return polkit.Result.YES;
        }
        if (action.id.indexOf("org.freedesktop.udisks2.") == 0) {
            return polkit.Result.YES;
        }
    }
});