Skip to content

Commit

Permalink
[FIX] User cannot delete own files in contextualbar #22595
Browse files Browse the repository at this point in the history
Co-authored-by: gabriellsh <[email protected]>
  • Loading branch information
dougfabris and gabriellsh authored Jul 7, 2021
1 parent d7635fc commit 6dd2e35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useMessageDeletionIsAllowed = (rid, uid) => {
return () => false;
}

if (!userHasPermissonToDeleteAny || !userHasPermissonToDeleteOwn) {
if (!userHasPermissonToDeleteAny && !userHasPermissonToDeleteOwn) {
return () => false;
}

Expand Down

0 comments on commit 6dd2e35

Please sign in to comment.