Skip to content

Commit 17eebd1

Browse files
author
Vladimir Kotal
committed
fix warning
1 parent ef89dd1 commit 17eebd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/src/main/java/opengrok/auth/plugin/LdapAttrPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ private String getSessionAttr() {
116116
@SuppressWarnings("unchecked")
117117
@Override
118118
public void fillSession(HttpServletRequest req, User user) {
119-
boolean sessionAllowed = false;
119+
Boolean sessionAllowed;
120120
LdapUser ldapUser;
121121
Map<String, Set<String>> records = null;
122122
Set<String> attributeValues;
123123

124-
updateSession(req, sessionAllowed);
124+
updateSession(req, false);
125125

126126
if ((ldapUser = (LdapUser) req.getSession().getAttribute(getSessionAttr())) == null) {
127127
LOGGER.log(Level.WARNING, "cannot get {0} attribute", LdapUserPlugin.SESSION_ATTR);

0 commit comments

Comments
 (0)