X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2Futil%2FAuthorizationContext.java;h=66c65450bb3fac8180a9025f2af99b465482d3a8;hp=719ac923b2936d3c06fb8a9abdaed25d1dc5f4fa;hb=8f8ecf399f5e25fdf8620dcba77fb1474839dc92;hpb=1fb06a8d7882c839d4b78319e96d1f5c01f261c2 diff --git a/src/club/wpia/gigi/util/AuthorizationContext.java b/src/club/wpia/gigi/util/AuthorizationContext.java index 719ac923..66c65450 100644 --- a/src/club/wpia/gigi/util/AuthorizationContext.java +++ b/src/club/wpia/gigi/util/AuthorizationContext.java @@ -79,7 +79,7 @@ public class AuthorizationContext implements Outputable, Serializable { } public boolean canSupport() { - return getSupporterTicketId() != null && isInGroup(Group.SUPPORTER); + return getSupporterTicketId() != null && isInGroup(Group.SUPPORTER) && isStronglyAuthenticated(); } private static final SprintfCommand sp = new SprintfCommand("Logged in as {0} via {1}.", Arrays.asList("${username", "${loginMethod")); @@ -113,7 +113,7 @@ public class AuthorizationContext implements Outputable, Serializable { } public boolean canVerify() { - return target instanceof User && ((User) target).canVerify(); + return target instanceof User && ((User) target).canVerify() && isStronglyAuthenticated() && ((User) target).hasValidRAChallenge(); } public boolean isStronglyAuthenticated() {