From 63168aacd63d712f67ca8c5b448f637729cdc2de Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 25 Feb 2013 08:46:10 -0500 Subject: [PATCH] Documentation --- src/com/gitblit/wicket/GitBlitWebSession.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/wicket/GitBlitWebSession.java b/src/com/gitblit/wicket/GitBlitWebSession.java index 0e1ae51..5195a1f 100644 --- a/src/com/gitblit/wicket/GitBlitWebSession.java +++ b/src/com/gitblit/wicket/GitBlitWebSession.java @@ -29,6 +29,7 @@ import org.apache.wicket.protocol.http.WebSession; import org.apache.wicket.protocol.http.request.WebClientInfo; +import com.gitblit.Constants.AuthenticationType; import com.gitblit.models.UserModel; public final class GitBlitWebSession extends WebSession { @@ -45,9 +46,12 @@ private AtomicBoolean isForking; + public AuthenticationType authenticationType; + public GitBlitWebSession(Request request) { super(request); isForking = new AtomicBoolean(); + authenticationType = AuthenticationType.CREDENTIALS; } public void invalidate() { @@ -103,7 +107,7 @@ if (user == null) { return false; } - return user.canAdmin; + return user.canAdmin(); } public String getUsername() { -- Gitblit v1.9.1