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
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
Unknown Object (File)
Tue, Nov 5, 1:54 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