Replace all User.equals for Collaborator.identityEquality
parent
596aeeebc4
commit
6560973237
|
@ -36,7 +36,7 @@ public enum MindmapFilter {
|
|||
MY_MAPS("my_maps") {
|
||||
@Override
|
||||
boolean accept(@NotNull Mindmap mindmap, @NotNull User user) {
|
||||
return mindmap.getCreator().equals(user);
|
||||
return mindmap.getCreator().identityEquality(user);
|
||||
}
|
||||
},
|
||||
STARRED("starred") {
|
||||
|
|
|
@ -68,7 +68,7 @@ public class RestLockInfo {
|
|||
}
|
||||
|
||||
public boolean isLockedByMe() {
|
||||
return isLocked() && lockInfo != null && lockInfo.getUser().equals(user);
|
||||
return isLocked() && lockInfo != null && lockInfo.getUser().identityEquality(user);
|
||||
}
|
||||
|
||||
public void setLockedByMe(boolean lockedForMe) {
|
||||
|
|
|
@ -69,7 +69,7 @@ class LockManagerImpl implements LockManager {
|
|||
}
|
||||
|
||||
final LockInfo result = this.getLockInfo(mindmap);
|
||||
if (!result.getUser().equals(user)) {
|
||||
if (!result.getUser().identityEquality(user)) {
|
||||
throw new IllegalStateException("Could not update map lock timeout if you are not the locking user. User:" + result.getUser() + ", " + user);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue