mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/mod_pubsub/mod_pubsub.erl: Fix compilation warnings
* src/mod_pubsub/node_zoo.erl: Likewise * src/mod_shared_roster.erl: Likewise SVN Revision: 1428
This commit is contained in:
parent
a2bed6709c
commit
f1f0bb0431
@ -1,9 +1,13 @@
|
|||||||
2008-07-09 Badlop <badlop@process-one.net>
|
2008-07-09 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/mod_pubsub/mod_pubsub.erl: Fix compilation warnings
|
||||||
|
* src/mod_pubsub/node_zoo.erl: Likewise
|
||||||
|
|
||||||
* src/mod_shared_roster.erl: Allow to get subscribed to a contact
|
* src/mod_shared_roster.erl: Allow to get subscribed to a contact
|
||||||
that is already in the roster by means of a shared roster group:
|
that is already in the roster by means of a shared roster group:
|
||||||
add it to another roster group and it gets subscribed
|
add it to another roster group and it gets subscribed
|
||||||
automatically (EJAB-407)
|
automatically (EJAB-407)
|
||||||
|
|
||||||
* src/mod_roster.erl: Likewise
|
* src/mod_roster.erl: Likewise
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_log.erl: Fix XHTML compliance: ensure some
|
* src/mod_muc/mod_muc_log.erl: Fix XHTML compliance: ensure some
|
||||||
|
@ -2602,7 +2602,7 @@ set_xoption([], NewOpts) ->
|
|||||||
NewOpts;
|
NewOpts;
|
||||||
set_xoption([{"FORM_TYPE", _} | Opts], NewOpts) ->
|
set_xoption([{"FORM_TYPE", _} | Opts], NewOpts) ->
|
||||||
set_xoption(Opts, NewOpts);
|
set_xoption(Opts, NewOpts);
|
||||||
set_xoption([{"pubsub#roster_groups_allowed", Value} | Opts], NewOpts) ->
|
set_xoption([{"pubsub#roster_groups_allowed", _Value} | Opts], NewOpts) ->
|
||||||
?SET_LIST_XOPT(roster_groups_allowed, []); % XXX: waiting for EJAB-659 to be solved
|
?SET_LIST_XOPT(roster_groups_allowed, []); % XXX: waiting for EJAB-659 to be solved
|
||||||
set_xoption([{"pubsub#deliver_payloads", [Val]} | Opts], NewOpts) ->
|
set_xoption([{"pubsub#deliver_payloads", [Val]} | Opts], NewOpts) ->
|
||||||
?SET_BOOL_XOPT(deliver_payloads, Val);
|
?SET_BOOL_XOPT(deliver_payloads, Val);
|
||||||
|
@ -57,7 +57,8 @@
|
|||||||
get_items/2,
|
get_items/2,
|
||||||
get_item/8,
|
get_item/8,
|
||||||
get_item/3,
|
get_item/3,
|
||||||
set_item/1
|
set_item/1,
|
||||||
|
get_item_name/3
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
|
||||||
@ -90,9 +91,9 @@ features() ->
|
|||||||
%% use same code as node_default, but do not limite node to
|
%% use same code as node_default, but do not limite node to
|
||||||
%% the home/localhost/user/... hierarchy
|
%% the home/localhost/user/... hierarchy
|
||||||
%% any node is allowed
|
%% any node is allowed
|
||||||
create_node_permission(Host, ServerHost, Node, ParentNode, Owner, Access) ->
|
create_node_permission(_Host, ServerHost, _Node, _ParentNode, Owner, Access) ->
|
||||||
LOwner = jlib:jid_tolower(Owner),
|
LOwner = jlib:jid_tolower(Owner),
|
||||||
{User, Server, _Resource} = LOwner,
|
%%{_User, _Server, _Resource} = LOwner,
|
||||||
Allowed = case acl:match_rule(ServerHost, Access, LOwner) of
|
Allowed = case acl:match_rule(ServerHost, Access, LOwner) of
|
||||||
allow ->
|
allow ->
|
||||||
true;
|
true;
|
||||||
@ -175,3 +176,6 @@ get_item(Host, Node, ItemId, JID, AccessModel, PresenceSubscription, RosterGroup
|
|||||||
|
|
||||||
set_item(Item) ->
|
set_item(Item) ->
|
||||||
node_default:set_item(Item).
|
node_default:set_item(Item).
|
||||||
|
|
||||||
|
get_item_name(Host, Node, Id) ->
|
||||||
|
node_default:get_item_name(Host, Node, Id).
|
||||||
|
@ -488,7 +488,7 @@ get_user_displayed_groups(US) ->
|
|||||||
end, get_user_groups(US))),
|
end, get_user_groups(US))),
|
||||||
[Group || Group <- DisplayedGroups1, is_group_enabled(Host, Group)].
|
[Group || Group <- DisplayedGroups1, is_group_enabled(Host, Group)].
|
||||||
|
|
||||||
is_user_in_group({U, S} = US, Group, Host) ->
|
is_user_in_group({_U, S} = US, Group, Host) ->
|
||||||
case catch mnesia:dirty_match_object(
|
case catch mnesia:dirty_match_object(
|
||||||
#sr_user{us=US, group_host={Group, Host}}) of
|
#sr_user{us=US, group_host={Group, Host}}) of
|
||||||
[] -> lists:member(US, get_group_users(S, Group));
|
[] -> lists:member(US, get_group_users(S, Group));
|
||||||
|
Loading…
Reference in New Issue
Block a user