aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/muc_register.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-20 14:45:22 +0100
committerKim Alvefur <zash@zash.se>2018-12-20 14:45:22 +0100
commit46e97ef82f870f1f425c80d656f0008448c7b7ff (patch)
tree5bc623da7ae38b50135ffd7bec377f4997a6a98b /spec/scansion/muc_register.scs
parentc0504b0e06d13546a40bc4963097a2bc5a70b44b (diff)
downloadprosody-46e97ef82f870f1f425c80d656f0008448c7b7ff.tar.gz
prosody-46e97ef82f870f1f425c80d656f0008448c7b7ff.zip
MUC: Allow changing data attached to an only owner (fixes #1273)
This previously prevented a single owner from setting their own nickname via admin query. The form method uses `true` as actor so it bypasses this check.
Diffstat (limited to 'spec/scansion/muc_register.scs')
-rw-r--r--spec/scansion/muc_register.scs22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/scansion/muc_register.scs b/spec/scansion/muc_register.scs
index 98af33f1..e1eaf4e0 100644
--- a/spec/scansion/muc_register.scs
+++ b/spec/scansion/muc_register.scs
@@ -504,3 +504,25 @@ Rosaline receives:
<status xmlns='http://jabber.org/protocol/muc#user' code='110'/>
</x>
</presence>
+
+# Romeo sets their their own nickname via admin query (see #1273)
+Romeo sends:
+ <iq to="room@conference.localhost" id="reserve" type="set">
+ <query xmlns="http://jabber.org/protocol/muc#admin">
+ <item nick="Romeo" affiliation="owner" jid="${Romeo's JID}"/>
+ </query>
+ </iq>
+
+Romeo receives:
+ <presence from="room@conference.localhost/Romeo">
+ <x xmlns="http://jabber.org/protocol/muc#user">
+ <item xmlns="http://jabber.org/protocol/muc#user" role="moderator" jid="${Romeo's full JID}" affiliation="owner">
+ <actor xmlns="http://jabber.org/protocol/muc#user" nick="Romeo"/>
+ </item>
+ <status xmlns="http://jabber.org/protocol/muc#user" code="110"/>
+ </x>
+ </presence>
+
+Romeo receives:
+ <iq from="room@conference.localhost" id="reserve" type="result"/>
+