mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Deleting the Guest Home space no longer means an exception occurs when any user attempts a Guest login - The "go direct to login page url" workaround is no longer required - A redirection to the login page occurs automatically if the Guest Home space is deleted and a warning output to the console git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -145,7 +145,9 @@ public final class AuthenticationHelper
|
|||||||
// check that the home space node exists - else Guest cannot proceed
|
// check that the home space node exists - else Guest cannot proceed
|
||||||
if (nodeService.exists(guestHomeRef) == false)
|
if (nodeService.exists(guestHomeRef) == false)
|
||||||
{
|
{
|
||||||
throw new InvalidNodeRefException(guestHomeRef);
|
// cannot login as Guest as Home is missing - return to login screen
|
||||||
|
logger.warn("Unable to locate Guest Home space - may have been deleted?");
|
||||||
|
throw new AuthenticationException("");
|
||||||
}
|
}
|
||||||
user.setHomeSpaceId(guestHomeRef.getId());
|
user.setHomeSpaceId(guestHomeRef.getId());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user