SID-00182: Pass parent access-control to child topics
| Status: |
Answered |
TWiki version: |
4.1.1 |
Perl version: |
|
| Category: |
CategoryAccessControl |
Server OS: |
|
Last update: |
16 years ago |
Hi everybody,
I have a Twiki with different topics running and want to ensure now that only authorized people can access some topics. The question is now if I can pass the access controls defined in one topic to the cild topic cause I have dozens of child topics and dont want do edit every single one.
Hope my question is clear...
Florian
--
FlorianBecker - 11 Mar 2009
Discussion and Answer
Access control is not inherited into child topics. Pragmatic approach to reduce mistakes in access control settings: Use a dedicated web for access controlled content. That way you set the access control once for all pages, and maintain the group separately. More at
TWikiAccessControl.
(BTW, on twiki.org you do not need to InventCrypticTopicNames for support titles)
--
PeterThoeny - 11 Mar 2009
I tried to implement the same idea using a form:
For the parent (the lab notebook):
* Set ALLOWTOPICVIEW = %SEARCH{ "^SID-00182$" scope="topic" nosearch="on" type="regex" nonoise="on" format="$wikiusername" }%, %FORMFIELD{"readAccess"}%
For the child (the lab notebook page):
* Set ALLOWTOPICVIEW = %SEARCH{ "^SupportForum$" scope="topic" nosearch="on" type="regex" nonoise="on" format="$wikiusername" }%, %FORMFIELD{"readAccess" topic="SupportForum"}%
I think variables are not expended when the TWiki engine evaluates access. Am I right?
--
GregoireLeclair - 17 Mar 2009
Correct, they are not. Only a few system variables are expanded, such as
%MAINWEB%
--
PeterThoeny - 17 Mar 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.