El Mon, Oct 31, 2011 at 09:58:48PM +0100, Steffen Hoffmann va escriure:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Am 29.10.2011 09:09, wrote Sergio Talens-Oliag:
> > This mail is to announce a new hack useful for archiving Trac projects (and
> > probably other things, but the main motive was that).
> 
> It's not immediately clear from reading current wiki doc, what would be
> the expected behavior when having (some) identical items in blacklist
> and whitelist. Just a guess that blacklist would overwrite whitelist,
> but this should really be made clearer in docs as I don't know of any
> universal rule - just be explicit about interaction of both sets.

Well, I thought it was clear on the description of the evaluation:

  To filter permissions as desired the plugin has to be the first one on the
  permission_policy list and it works as follows:

    1. If the blacklist is available and the permission being considered is on
           the list the check_permission function returns False and the 
permission
           evaluation stops.

That means that the blacklist is always evaluated first.

Anyway, I'll add an explicit note saying that the blacklist always takes
precedence over the whitelist.

Greetings,

  Sergio.

-- 
Sergio Talens-Oliag <[email protected]>       <http://www.iti.upv.es/>
Key fingerprint = FF77 A16B 9D09 FC7B 6656 CFAD 261D E19A 578A 36F2
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to