Page MenuHomePhabricator

[lib] Checking if the user can edit the message
ClosedPublic

Authored by kuba on Mar 22 2023, 6:01 AM.
Tags
None
Referenced Files
F3373812: D7142.diff
Tue, Nov 26, 11:59 AM
Unknown Object (File)
Wed, Nov 13, 10:13 PM
Unknown Object (File)
Fri, Nov 8, 5:04 PM
Unknown Object (File)
Fri, Nov 8, 5:04 PM
Unknown Object (File)
Fri, Nov 8, 5:04 PM
Unknown Object (File)
Fri, Nov 8, 4:43 PM
Unknown Object (File)
Fri, Nov 8, 9:51 AM
Unknown Object (File)
Thu, Nov 7, 4:30 AM
Subscribers

Details

Summary

Added function to check whether the user can edit the specific message. It will be used later in deciding whether to show or not the edit button to the user.

Test Plan

Temporarily added an 'Edit' button to the messages which the user can edit.

  • Checked if the user can edit his messages
  • Checked if the user can't edit other's messages
  • Checked if the user can't edit his messages without EDIT_MESSAGE permission.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable