mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* src/web/ejabberd_web_admin.erl: When requesting page of
nonexistent user, show 'Not Found' page (EJAB-771) SVN Revision: 1644
This commit is contained in:
parent
2af52abdba
commit
fa18b35df5
@ -1,3 +1,8 @@
|
||||
2008-10-13 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/web/ejabberd_web_admin.erl: When requesting page of
|
||||
nonexistent user, show 'Not Found' page (EJAB-771)
|
||||
|
||||
2008-10-12 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/web/ejabberd_web_admin.erl: Run new hook
|
||||
|
@ -908,8 +908,13 @@ process_admin(Host,
|
||||
#request{path = ["user", U],
|
||||
q = Query,
|
||||
lang = Lang}) ->
|
||||
Res = user_info(U, Host, Query, Lang),
|
||||
make_xhtml(Res, Host, Lang);
|
||||
case ejabberd_auth:is_user_exists(U, Host) of
|
||||
true ->
|
||||
Res = user_info(U, Host, Query, Lang),
|
||||
make_xhtml(Res, Host, Lang);
|
||||
false ->
|
||||
make_xhtml([?XCT("h1", "Not Found")], Host, Lang)
|
||||
end;
|
||||
|
||||
process_admin(Host,
|
||||
#request{path = ["nodes"],
|
||||
|
Loading…
Reference in New Issue
Block a user