fix (event action): allow to edit only if permission to send message
This commit is contained in:
parent
7bde9bc0c8
commit
323d8cf7b3
2 changed files with 46 additions and 1 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