From e54e556e01ec206b7e104c472270f86955d69fc6 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 22 May 2015 18:47:17 +0200 Subject: [PATCH] Fix use of publish_only affiliation with odbc backend --- src/node_hometree_odbc.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_hometree_odbc.erl b/src/node_hometree_odbc.erl index b9abac203..e99ce7247 100644 --- a/src/node_hometree_odbc.erl +++ b/src/node_hometree_odbc.erl @@ -1105,6 +1105,7 @@ decode_jid(SJID) -> ). decode_affiliation(<<"o">>) -> owner; decode_affiliation(<<"p">>) -> publisher; +decode_affiliation(<<"u">>) -> publish_only; decode_affiliation(<<"m">>) -> member; decode_affiliation(<<"c">>) -> outcast; decode_affiliation(_) -> none. @@ -1151,6 +1152,7 @@ encode_host(Host) -> ejabberd_odbc:escape(Host). ). encode_affiliation(owner) -> <<"o">>; encode_affiliation(publisher) -> <<"p">>; +encode_affiliation(publish_only) -> <<"u">>; encode_affiliation(member) -> <<"m">>; encode_affiliation(outcast) -> <<"c">>; encode_affiliation(_) -> <<"n">>.