# Calculate comment=// ini(container.type)!=desktop
// Stop, restart, suspend, hybernate for multiple users
//

polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.consolekit.system.stop-multiple-users" ||
        action.id == "org.freedesktop.consolekit.system.restart-multiple-users" || 
        action.id == "org.freedesktop.consolekit.system.suspend-multiple-users" ||
        action.id == "org.freedesktop.consolekit.system.hibernate-multiple-users" ||
        action.id == "org.freedesktop.consolekit.system.hybridsleep-multiple-users") &&
        subject.active) {
             return polkit.Result.YES;
   }
});
