Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/main/java/com/tiki/server/note/entity/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public void updateValue(
final boolean complete,
final NoteType noteType
) {
checkAuthor(clientId);
checkTeam(clientTeamId);
this.title = title;
this.contents = contents;
Expand All @@ -98,12 +97,6 @@ public void deleteMemberDependency() {
this.memberId = null;
}

private void checkAuthor(final long clientId) {
if (this.memberId != clientId) {
throw new NoteException(UPDATE_ONLY_AUTHOR);
}
}

private void checkTeam(final long clientTeamId) {
if (this.teamId != clientTeamId) {
throw new NoteException(UPDATE_ONLY_BELONGING_TEAM);
Expand Down