| Home | Gifts | 
recursion attribute
housing recursion depth. If checkAccessPermission() ends up calling itself,
the recursive call returns true immediately.
| # | DENYTOPIC | ALLOWTOPIC | DENYWEB | ALLOWWEB | WEB level caching | 
| 1 | empty | * | * | * | no | 
| 2 | match | * | * | * | no | 
| 3 | no match | set | * | * | no | 
| 4 | not set | not set | static, match | * | yes | 
| 5 | not set | not set | dynamic | * | no | 
| 6 | not set | not set | static, no match | dynamic | no | 
| 7 | not set | not set | static, no match | static or not set | yes | 
| 8 | not set | not set | not set | dynamic | no | 
| 9 | not set | not set | not set | static or not set | yes | 
cache attribute for permission
caching, which has a slot for each user.
| Data | Where it's housed | 
|---|---|
| admin membership | $access->{cache}{$user}{isadmin}{"web"} | 
| view access to the web | $access->{cache}{$user}{allowview}{"web"} | 
| view access to the topic | $access->{cache}{$user}{allowview}{"web.topic"} | 
| failure value of the web | $access->{cache}{$user}{failure}{"web"} | 
| failure value of the topic | $access->{cache}{$user}{failure}{"web.topic"} | 
$action  - 'VIEW', 'CHANGE', 'CREATE', etc.
$user    - User id (not wikiname)
$text    - If undef or '': Read '$theWebName.$theTopicName' to check permissions
$meta    - If undef, but $text is defined, then metadata will be parsed from $text. If defined, then metadata embedded in $text will be ignored. Always ignored if $text is undefined. Settings in $meta override * Set settings in plain text.
$topic   - Topic name to check, e.g. 'SomeTopic' *undef to check web perms only)
$web     - Web, e.g. 'Know'
| Revision r5 - 2013-10-14 - 08:02:47 - TWikiContributor | Edit |