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)
Thu, Dec 26, 12:59 AM
Unknown Object (File)
Sun, Dec 22, 1:28 AM
Unknown Object (File)
Sat, Dec 7, 11:38 PM
Unknown Object (File)
Sat, Dec 7, 7:19 AM
Unknown Object (File)
Thu, Dec 5, 1:57 AM
Unknown Object (File)
Wed, Dec 4, 3:22 AM
Unknown Object (File)
Nov 26 2024, 2:25 PM
Unknown Object (File)
Nov 26 2024, 11:59 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