Skip to content

Commit

Permalink
fix: Users can mention here and all even without permission (#29907)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Jul 25, 2023
1 parent db2cc31 commit 306a583
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-beans-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fix `mention-here` and `mention-all` permissions not being honored
2 changes: 1 addition & 1 deletion apps/meteor/app/lib/server/startup/filterATAllTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ callbacks.add(

return message;
},
callbacks.priority.HIGH,
callbacks.priority.MEDIUM,
'filterATAllTag',
);
2 changes: 1 addition & 1 deletion apps/meteor/app/lib/server/startup/filterATHereTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ callbacks.add(

return message;
},
callbacks.priority.HIGH,
callbacks.priority.MEDIUM,
'filterATHereTag',
);

0 comments on commit 306a583

Please sign in to comment.