Allows access if current user has any of requested permissions.
Allows access if current user has requested permission.
Allows access if current user has requested role.
Redirects to index page.
Redirects to index page with cookies.
Redirects to login page saving requested uri in LoginRedirect variable
Redirects to index page and show error message.
Redirects to index page and show error message.
message to be passed to S.error
Allows access only if user authenticated.
Allows access if the user is logged in.
Allows access if user is not logged in.
Creates login menu item.
Creates login menu item.
For example you can add to sitemap:
val login = buildLogin("login", RequireNotLoggedIn :: Nil)
localizable string to be set as menu item name.
menu loc parameters.
Creates logout menu item.
Creates logout menu item.
localizable string to be set as menu item name.
menu loc parameters.
Provides a list of LocParam required to create logout menu item.
This trait contains different LocParams related to permission control.