New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] Permission to bypass message editing and removing limits #27644
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #27644 +/- ##
===========================================
+ Coverage 41.60% 41.67% +0.07%
===========================================
Files 849 849
Lines 17556 17560 +4
Branches 2087 2087
===========================================
+ Hits 7305 7319 +14
+ Misses 9979 9967 -12
- Partials 272 274 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The messageActionDefault.ts
file and the canDeleteMessage
function in the apps/meteor/client/lib/chats/data.ts
file should also be updated so that the action buttons are displayed in the UI when a user has the bypass permission.
apps/meteor/app/authorization/server/functions/upsertPermissions.ts
Outdated
Show resolved
Hide resolved
…ns.ts Co-authored-by: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com>
…imits-permission # Conflicts: # apps/meteor/server/startup/migrations/v284.ts
@hugocostadev could you review this again? |
…e/wizard * 'develop' of github.com:RocketChat/Rocket.Chat: [BREAK] Unify monolith and microservices intercommunication on same technology and limit to Enterprise only (#27969) [NEW] Emojis rendering properly on quote message previews (#27972) Chore: Wait message to not be Busy (#28000) Chore: e2e changes tests (#27987) [IMPROVE] Audit (#27994) [IMPROVE] Registration Experience (#27820) [BREAK][ENTERPRISE] Limit presence statuses to 200 concurrent users when running monolith to keep performance (#27854) [BREAK] Removed deprecated settings for Legacy Messages, Marked, Snippet Messages, Autolinker and IssueLinks (#27902) [NEW] Permission to bypass message editing and removing limits (#27644) [FIX] Video Conf Message Blocks not always updating when running on micro services (#27764) Chore: Set missing colors (#27817) Fix CI Chore: undo busy selector [BREAK] Remove message view mode from User Preferences (#27867) Chore: Aria busy indicators (#27978) Chore: Refactor Composer Dropdown (#27931) Chore: Added Enterprise Options to Login customization (#27855) [FIX] Ignored messages reactivity (#27279) [BREAK] [NEW] Custom roles upsell modal (#27707)
Proposed changes (including videos or screenshots)
This PR adds a new permission called
bypass-time-limit-edit-and-delete
, to bypass the time limit when editing or deleting a message, the purpose of this PR is to remove the limitation for bots that cannot change the message after the specified time.Issue(s)
Steps to test or reproduce
Further comments
TC-329