splitbrain/dokuwiki — pull request #76 by Aorimn (2012-01-30 19:27:52+00:00)
Title: Add support for %GROUP% wildcard, if needed

I found myself in need with this kind of wildcard for groups.

The principle is that, for each group a user is in, an ACL line is added (during the loading) in place of the %GROUP% string.
As for the %USER% wildcard, a typical exemple would be something like:
grp:* @ALL 0
grp:%GROUP%:* @%GROUP% 8

Note that I also added two configuration options to control these wildcards for two reasons:
- for a long list of ACLs without any wildcard, one could gain performances ('usewildcards' option) if one doesn't check each line for a wildcard;
- as we are checking each group, it can break performances painfully.
(as I'm french, only french and english translations are available for these new options)

I'm ready to discuss with everything, comments on this pull or else. I didn't want to open a feature request as I implemented it already to both of my DokuWikis.

Cheers!