]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/pages/admin/support/SupportEnterTicketPage.java
add: ensure that for Support actions there is a valid Support Challenge
[gigi.git] / src / club / wpia / gigi / pages / admin / support / SupportEnterTicketPage.java
index 14b1faafc62a7afcd7ed5d43538c836fd94c370e..3db0881bbb80a19368f8a188bef6c66cedcd6b4f 100644 (file)
@@ -47,7 +47,7 @@ public class SupportEnterTicketPage extends Page {
 
     @Override
     public boolean isPermitted(AuthorizationContext ac) {
-        return ac != null && ac.isInGroup(Group.SUPPORTER) && ac.isStronglyAuthenticated();
+        return ac != null && ac.isInGroup(Group.SUPPORTER) && ac.isStronglyAuthenticated() && ac.getActor().hasValidSupportChallenge();
     }
 
 }