Change from boolean requiresLogin() to requiresLoginLevel() so that pages can require a specific login level. Remove login level checks from Freemarker controllers and handle using requiresLoginLevel() instead. If a user is already logged in and navigates or gets redirected to login page, show a message instead of a blank page.
This commit is contained in:
parent
279c083d89
commit
2b2d522f45
7 changed files with 74 additions and 32 deletions
|
@ -78,6 +78,11 @@
|
|||
</section>
|
||||
</#macro>
|
||||
|
||||
<#macro alreadyLoggedIn>
|
||||
<h2>Log in</h2>
|
||||
<p>You are already logged in. You may have been redirected to this page because you tried to access a page that you do not have permission to view.</p>
|
||||
</#macro>
|
||||
|
||||
<#macro error>
|
||||
<p>There was an error in the system.</p>
|
||||
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue