mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. 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:
@@ -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(")");
|
||||
|
Reference in New Issue
Block a user