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
F1740374: D7142.id23990.diff
Sun, May 12, 10:34 AM
F1739733: D7142.id24471.diff
Sat, May 11, 9:24 PM
Unknown Object (File)
Sat, May 11, 12:28 AM
Unknown Object (File)
Thu, May 9, 12:09 PM
Unknown Object (File)
Sun, May 5, 1:25 AM
Unknown Object (File)
Sun, May 5, 1:25 AM
Unknown Object (File)
Sun, May 5, 12:52 AM
Unknown Object (File)
Sun, Apr 28, 6:57 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
No Lint Coverage
Unit
No Test Coverage