DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:aclplusregex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
plugin:aclplusregex [2020-05-04 12:59] andiplugin:aclplusregex [2020-05-04 13:00] andi
Line 38: Line 38:
 Unlike in the normal ACL configuration, the user/group part expects a regular expression. If it matches against the current user's login or groups the line will be treated as an additional ACL configuration. Unlike in the normal ACL configuration, the user/group part expects a regular expression. If it matches against the current user's login or groups the line will be treated as an additional ACL configuration.
  
-The special thing about this plugin is is that you may use any matched pattern groups from the regexp in the page/namespace part. In addition, placeholders may be used: a ''*'' to match a single namespace or pagename and ''**'' to match an arbitrary number of namespaces.+The special thing about this plugin is is that you may use any matched pattern groups from the regexp in the page/namespace part. In addition, placeholders may be used: a ''*'' to match a single namespace or pagename and ''%%**%%'' to match an arbitrary number of namespaces.
  
 The file can also be edited through the [[plugin:confmanager|Confmanager Plugin]]. The file can also be edited through the [[plugin:confmanager|Confmanager Plugin]].
Line 67: Line 67:
 </code> </code>
  
-Please note that above example use the ''*'' placeholder. The rule would match ''docs:customer:0815:foo'' but not ''docs:customer:0815:foo:bar''. Use the ''**'' placeholder to match all namespaces bolow.+Please note that above example use the ''*'' placeholder. The rule would match ''docs:customer:0815:foo'' but not ''docs:customer:0815:foo:bar''. Use the ''%%**%%'' placeholder to match all namespaces bolow.
  
 A similar setup could be done where you have two groups for each customer: ''customer_<customerid>_write'' and ''customer_<customerid>_read''. You could use this to give different access levels to the customer namespace: A similar setup could be done where you have two groups for each customer: ''customer_<customerid>_write'' and ''customer_<customerid>_read''. You could use this to give different access levels to the customer namespace:
plugin/aclplusregex.txt · Last modified: 2024-01-07 14:43 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki