MXS-1583 Treat independent 'users' line in OR-fashion

If there are several 'users' lines in a rule file, for a particular
user, the rules each matching line will be checked independently
until a rule match is found.

That is, the rules of each 'users' line are treated in an OR-fashion
with respect to each other.
This commit is contained in:
Johan Wikman
2018-01-29 11:48:13 +02:00
parent cf0d745c14
commit 0db538db9a
4 changed files with 76 additions and 47 deletions

View File

@ -355,6 +355,12 @@ After the matching part comes the rules keyword after which a list of rule names
is expected. This allows reusing of the rules and enables varying levels of
query restriction.
If a particular _NAME_ appears on several `users` lines, then when an
actual user matches that name, the rules of each line are checked
independently until there is a match for the statement in question. That
is, the rules of each `users` line are treated in an _OR_ fashion with
respect to each other.
## Module commands
Read [Module Commands](../Reference/Module-Commands.md) documentation for