summaryrefslogtreecommitdiff
path: root/sysutils/consolekit/files/50-shutdown.rules
blob: 21f5753d45ba556ba838aae3d1069072a4fcd10b (plain)
1
2
3
4
5
6
7
8
9
polkit.addRule(function (action, subject) {
	if ((action.id == "org.freedesktop.consolekit.system.restart" ||
	action.id == "org.freedesktop.consolekit.system.stop"  ||
	action.id == "org.freedesktop.consolekit.system.suspend" ||
	action.id == "org.freedesktop.consolekit.system.hibernate")
	&& subject.isInGroup("operator")) {
		return polkit.Result.YES;
	}
});