mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix regression for authorize node subscription (thanks to Brian Cully)(EJAB-1060)
SVN Revision: 2652
This commit is contained in:
parent
2d41c81890
commit
503defac73
@ -313,9 +313,6 @@ subscribe_node(NodeId, Sender, Subscriber, AccessModel,
|
|||||||
(AccessModel == whitelist) and (not Whitelisted) ->
|
(AccessModel == whitelist) and (not Whitelisted) ->
|
||||||
%% Node has whitelist access model and entity lacks required affiliation
|
%% Node has whitelist access model and entity lacks required affiliation
|
||||||
{error, ?ERR_EXTENDED('not-allowed', "closed-node")};
|
{error, ?ERR_EXTENDED('not-allowed', "closed-node")};
|
||||||
(AccessModel == authorize) -> % TODO: to be done
|
|
||||||
%% Node has authorize access model
|
|
||||||
{error, 'forbidden'};
|
|
||||||
%%MustPay ->
|
%%MustPay ->
|
||||||
%% % Payment is required for a subscription
|
%% % Payment is required for a subscription
|
||||||
%% {error, ?ERR_PAYMENT_REQUIRED};
|
%% {error, ?ERR_PAYMENT_REQUIRED};
|
||||||
|
@ -325,9 +325,6 @@ subscribe_node(NodeId, Sender, Subscriber, AccessModel,
|
|||||||
(AccessModel == whitelist) and (not Whitelisted) ->
|
(AccessModel == whitelist) and (not Whitelisted) ->
|
||||||
%% Node has whitelist access model and entity lacks required affiliation
|
%% Node has whitelist access model and entity lacks required affiliation
|
||||||
{error, ?ERR_EXTENDED('not-allowed', "closed-node")};
|
{error, ?ERR_EXTENDED('not-allowed', "closed-node")};
|
||||||
(AccessModel == authorize) -> % TODO: to be done
|
|
||||||
%% Node has authorize access model
|
|
||||||
{error, 'forbidden'};
|
|
||||||
%%MustPay ->
|
%%MustPay ->
|
||||||
%% % Payment is required for a subscription
|
%% % Payment is required for a subscription
|
||||||
%% {error, ?ERR_PAYMENT_REQUIRED};
|
%% {error, ?ERR_PAYMENT_REQUIRED};
|
||||||
|
Loading…
Reference in New Issue
Block a user