Commit 9fbaf389 by Tuomas Riihimäki

Merge branch 'ticketSpamCommentedOut' into 'master'

Ticket spam commented out

see title

See merge request !236
2 parents fe5f76a6 c1512dc5
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#{sessionHandler.flushCache()} #{sessionHandler.flushCache()}
<h:form> <h:form>
<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>
......
...@@ -88,7 +88,13 @@ public class TestDataView extends GenericCDIView { ...@@ -88,7 +88,13 @@ public class TestDataView extends GenericCDIView {
return null; return null;
} }
public void sendMultibuggageSpam() { public void sendMultibuggageSpam() {
if(true)
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!