. Fix for issue identified by Steve on Friday

- to handle that "Guest" is not Person from personService.personExists() but it is a Person if you call personService.getPerson()… (very odd)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-12 17:45:52 +00:00
parent ec63a96311
commit 11493da0c4
4 changed files with 18 additions and 10 deletions

View File

@@ -457,9 +457,9 @@ public abstract class InviteUsersWizard extends AbstractWizardBean
// build a display label showing the user and their role for the space
AuthorityType authType = AuthorityType.getAuthorityType(authority);
if (authType.equals(AuthorityType.USER) || authType.equals(AuthorityType.GUEST))
if (authType == AuthorityType.GUEST || authType == AuthorityType.USER)
{
if (this.personService.personExists(authority) == true)
if (authType == AuthorityType.GUEST || this.personService.personExists(authority) == true)
{
// found a User authority
NodeRef ref = this.personService.getPerson(authority);
@@ -468,7 +468,7 @@ public abstract class InviteUsersWizard extends AbstractWizardBean
label.append(firstName)
.append(" ")
.append(lastName)
.append(lastName != null ? lastName : "")
.append(" (")
.append(Application.getMessage(FacesContext.getCurrentInstance(), role))
.append(")");