mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Fix pattern match
This commit is contained in:
parent
b0b66be747
commit
cd4c730b9c
@ -1661,7 +1661,7 @@ set_form(From, Host, ?NS_ADMINL("change-user-password"), _Lang, XData) ->
|
|||||||
set_form(From, Host, ?NS_ADMINL("get-user-lastlogin"), Lang, XData) ->
|
set_form(From, Host, ?NS_ADMINL("get-user-lastlogin"), Lang, XData) ->
|
||||||
AccountString = get_value("accountjid", XData),
|
AccountString = get_value("accountjid", XData),
|
||||||
JID = exmpp_jid:parse(AccountString),
|
JID = exmpp_jid:parse(AccountString),
|
||||||
User = [_|_] = exmpp_jid:prep_node(JID),
|
User = exmpp_jid:prep_node(JID),
|
||||||
Server = exmpp_jid:prep_domain(JID),
|
Server = exmpp_jid:prep_domain(JID),
|
||||||
true = (Server == Host) orelse (get_permission_level(From) == global),
|
true = (Server == Host) orelse (get_permission_level(From) == global),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user