diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2018-03-16 17:26:51 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2018-03-16 17:26:51 +0100 |
commit | a84dd0f6271fba954c41466156bf020a93fb54b3 (patch) | |
tree | f5961b677f5e3300624452cde71ecac5cf04cecd /src | |
parent | Refactor publish_item conditions (#2267) (diff) |
Add transient notification condition (#2267)
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_pubsub.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 49a460a37..88daf721c 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -1791,7 +1791,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, PubOpts, Access (DeliverPayloads or PersistItems) and (PayloadCount > 1) -> {error, extended_error(xmpp:err_bad_request(), err_invalid_payload())}; - (not DeliverPayloads) and (PayloadCount > 0) -> + (not (DeliverPayloads or PersistItems)) and (PayloadCount > 0) -> {error, extended_error(xmpp:err_bad_request(), err_item_forbidden())}; true -> |