summaryrefslogtreecommitdiff
path: root/pcr/consolekit/75-consolekit.rules
blob: adddfb1bd7913b7ab87aba394f3cb2b51cae541b (plain)
1
2
3
4
5
6
7
8
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") {
		return polkit.Result.YES;
	}
});