Skip to content

Commit

Permalink
fix: delete collaboration
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Jun 11, 2024
1 parent 7faaa27 commit 6130992
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public boolean updateCollaboration(Long fileId, Long userId, JsonCollaborationBo
}

public boolean deleteCollaboration(Long fileId, Long userId) {
final File file = fileService.getFile(fileId, Authority.OWNER);
final File file = fileService.getFile(fileId, Authority.OWNER_OR_COLLABORATOR);
if (file == null) return false;
final Collaboration collaboration = getCollaboration(fileId, userId);
if (collaboration == null) return false;
Expand Down

0 comments on commit 6130992

Please sign in to comment.