public boolean canEdit(SPPerson currentPerson) {
return currentPerson.admin().booleanValue() || ERXEOControlUtilities.eoEquals(owner(), currentPerson);
}
public SPMembership invite(String emailAddress) {
EOEditingContext editingContext = editingContext();
<BUG>SPPerson person = SPPerson.fetchSPPerson(editingContext, SPPerson.EMAIL_ADDRESS.is(emailAddress));
</BUG>
if (person == null) {
int atIndex = emailAddress.indexOf('@');
String name = atIndex == -1 ? emailAddress : emailAddress.substring(0, atIndex);

public boolean canEdit(SPPerson currentPerson) {
return currentPerson.admin().booleanValue() || ERXEOControlUtilities.eoEquals(owner(), currentPerson);
}
public SPMembership invite(String emailAddress) {
EOEditingContext editingContext = editingContext();
SPPerson person = SPPerson.fetchSPPerson(editingContext, SPPerson.EMAIL_ADDRESS.likeInsensitive(emailAddress));
if (person == null) {
int atIndex = emailAddress.indexOf('@');
String name = atIndex == -1 ? emailAddress : emailAddress.substring(0, atIndex);
