25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Add explanation about global Access precendence over vhost Access (EJAB-803)

SVN Revision: 2824
This commit is contained in:
Badlop 2009-12-23 16:08:34 +00:00
parent c7f4f39c03
commit 71142e336d
2 changed files with 9 additions and 1 deletions

View File

@ -1183,7 +1183,10 @@ The syntax is:
sequentially checks if that JID matches any of the ACLs that are named in the sequentially checks if that JID matches any of the ACLs that are named in the
second elements of the tuples in the list. If it matches, the first element of second elements of the tuples in the list. If it matches, the first element of
the first matched tuple is returned, otherwise the value &#X2018;<TT>deny</TT>&#X2019; is the first matched tuple is returned, otherwise the value &#X2018;<TT>deny</TT>&#X2019; is
returned.</P><P>Example: returned.</P><P>If you define specific Access rights in a virtual host,
remember that the globally defined Access rights have precedence over those.
This means that, in case of conflict, the Access granted or denied in the global server is used
and the Access of a virtual host doesn&#X2019;t have effect.</P><P>Example:
</P><PRE CLASS="verbatim">{access, configure, [{allow, admin}]}. </P><PRE CLASS="verbatim">{access, configure, [{allow, admin}]}.
{access, something, [{deny, badmans}, {access, something, [{deny, badmans},
{allow, all}]}. {allow, all}]}.

View File

@ -1439,6 +1439,11 @@ second elements of the tuples in the list. If it matches, the first element of
the first matched tuple is returned, otherwise the value `\term{deny}' is the first matched tuple is returned, otherwise the value `\term{deny}' is
returned. returned.
If you define specific Access rights in a virtual host,
remember that the globally defined Access rights have precedence over those.
This means that, in case of conflict, the Access granted or denied in the global server is used
and the Access of a virtual host doesn't have effect.
Example: Example:
\begin{verbatim} \begin{verbatim}
{access, configure, [{allow, admin}]}. {access, configure, [{allow, admin}]}.