Remove user homes patch - find in the UI or fall back to company home.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4989 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2007-01-31 20:05:18 +00:00
parent 5b92ec9b0b
commit 1929addc3d

View File

@@ -851,7 +851,7 @@ public class NewUserWizard extends AbstractWizardBean
private NodeRef getDefaultHomeSpace() private NodeRef getDefaultHomeSpace()
{ {
if (this.defaultHomeSpaceRef == null) if ((this.defaultHomeSpaceRef == null) || !nodeService.exists(this.defaultHomeSpaceRef))
{ {
String defaultHomeSpacePath = Application.getClientConfig(FacesContext.getCurrentInstance()).getDefaultHomeSpacePath(); String defaultHomeSpacePath = Application.getClientConfig(FacesContext.getCurrentInstance()).getDefaultHomeSpacePath();
@@ -861,7 +861,7 @@ public class NewUserWizard extends AbstractWizardBean
if (nodes.size() == 0) if (nodes.size() == 0)
{ {
throw new IllegalStateException("Unable to find company home space path: " + defaultHomeSpacePath); return getCompanyHomeSpace();
} }
this.defaultHomeSpaceRef = nodes.get(0); this.defaultHomeSpaceRef = nodes.get(0);