231 kx polkit.addRule(
231 kx function(action, subject) {
231 kx if ( (action.id == "org.freedesktop.upower.suspend" ||
231 kx action.id == "org.freedesktop.upower.hibernate")
231 kx && subject.isInGroup("power") ) {
231 kx return polkit.Result.YES;
231 kx }
231 kx }
231 kx );