Commit 4d2c5fd9 by Juho Juopperi

Enable mass spamming feature for Assembly 2015

1 parent b994f9a7
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
#{sessionHandler.flushCache()} #{sessionHandler.flushCache()}
<h:form> <h:form>
<!-- Enable only when needed: h:commandButton action="#{testView.sendMultibuggageSpam}" value="MULTIUSERSPAM" onclick="return confirm('SPAMSPAMSPAMS?!');" / --> <!-- Enable only when needed: -->
<h:commandButton action="#{testView.sendMultibuggageSpam}" value="MULTIUSERSPAM" onclick="return confirm('SPAMSPAMSPAMS?!');" />
<h:commandButton action="#{testView.resetMenu()}" value="Reset to newui menu" onclick="return confirm('THIS WILL RESET ALL MODIFICATIONS TO DEFAULT MENU!!\n Are you really sure?!');" /> <h:commandButton action="#{testView.resetMenu()}" value="Reset to newui menu" onclick="return confirm('THIS WILL RESET ALL MODIFICATIONS TO DEFAULT MENU!!\n Are you really sure?!');" />
<h:commandButton action="#{testView.resetOldMenu()}" value="Reset to old menu" onclick="return confirm('THIS WILL RESET ALL MODIFICATIONS TO DEFAULT MENU!!\n Are you really sure?!');" /> <h:commandButton action="#{testView.resetOldMenu()}" value="Reset to old menu" onclick="return confirm('THIS WILL RESET ALL MODIFICATIONS TO DEFAULT MENU!!\n Are you really sure?!');" />
</h:form> </h:form>
......
...@@ -91,9 +91,9 @@ public class TestDataView extends GenericCDIView { ...@@ -91,9 +91,9 @@ public class TestDataView extends GenericCDIView {
public void sendMultibuggageSpam() { public void sendMultibuggageSpam() {
if(true) if (false) {
throw new RuntimeException("Remove this exception when you want to reactivate multiuserspammer!"); throw new RuntimeException("Remove this exception when you want to reactivate multiuserspammer!");
}
if(super.requirePermissions(EventPermission.MANAGE_PRIVATE_PROPERTIES)) { if(super.requirePermissions(EventPermission.MANAGE_PRIVATE_PROPERTIES)) {
List<EventUser> usersWithTickets = ticketBean.getSendToAllUsers(); List<EventUser> usersWithTickets = ticketBean.getSendToAllUsers();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!