Merge pull request #4895 from element-hq/feature/fga/can-edit-permission
fix (event action): allow to edit only if permission to send message
This commit is contained in:
commit
17c0bd88b6
2 changed files with 44 additions and 23 deletions
|
|
@ -169,7 +169,7 @@ class DefaultActionListPresenter @AssistedInject constructor(
|
|||
if (timelineItem.isRemote && timelineItem.content.canBeForwarded()) {
|
||||
add(TimelineItemAction.Forward)
|
||||
}
|
||||
if (timelineItem.isEditable) {
|
||||
if (timelineItem.isEditable && usersEventPermissions.canSendMessage) {
|
||||
if (timelineItem.content is TimelineItemEventContentWithAttachment) {
|
||||
// Caption
|
||||
if (timelineItem.content.caption == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue