summaryrefslogtreecommitdiff
path: root/pcr/consolekit/75-org.freedesktop.consolekit.rules
blob: e73e10755a788f5ca295cb9655c828bbf481b518 (plain)
1
2
3
4
5
6
7
8
9
10
11
polkit.addRule(function(action, subject) {
	if (action.id == "org.freedesktop.consolekit.system.stop" ||
		action.id == "org.freedesktop.consolekit.system.restart" ||
		action.id == "org.freedesktop.consolekit.system.hibernate" ||
		action.id == "org.freedesktop.consolekit.system.suspend" ||
		action.id == "org.freedesktop.consolekit.system.restart-multiple-users" ||
		action.id == "org.freedesktop.consolekit.system.suspend-multiple-users" ||
		action.id == "org.freedesktop.consolekit.system.stop-multiple-users") {
		return polkit.Result.YES;
	}
});