|
|
|
|
|
|
|
|
boolean authenticateAdmin = app().settings().getBoolean(Keys.web.authenticateAdminPages, true); |
|
|
boolean authenticateAdmin = app().settings().getBoolean(Keys.web.authenticateAdminPages, true); |
|
|
boolean allowAdmin = app().settings().getBoolean(Keys.web.allowAdministration, true); |
|
|
boolean allowAdmin = app().settings().getBoolean(Keys.web.allowAdministration, true); |
|
|
boolean allowLucene = app().settings().getBoolean(Keys.web.allowLuceneIndexing, true); |
|
|
boolean allowLucene = app().settings().getBoolean(Keys.web.allowLuceneIndexing, true); |
|
|
|
|
|
boolean displayUserPanel = app().settings().getBoolean(Keys.web.displayUserPanel, true); |
|
|
boolean isLoggedIn = GitBlitWebSession.get().isLoggedIn(); |
|
|
boolean isLoggedIn = GitBlitWebSession.get().isLoggedIn(); |
|
|
|
|
|
|
|
|
if (authenticateAdmin) { |
|
|
if (authenticateAdmin) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (authenticateView || authenticateAdmin) { |
|
|
|
|
|
|
|
|
if (displayUserPanel && (authenticateView || authenticateAdmin)) { |
|
|
if (isLoggedIn) { |
|
|
if (isLoggedIn) { |
|
|
UserMenu userFragment = new UserMenu("userPanel", "userMenuFragment", RootPage.this); |
|
|
UserMenu userFragment = new UserMenu("userPanel", "userMenuFragment", RootPage.this); |
|
|
add(userFragment); |
|
|
add(userFragment); |