Tags:
create new tag
view all tags

SID-00182: Pass parent access-control to child topics

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Pass parent access-control to child topics
SupportCategory CategoryAccessControl
TWiki version 4.1.1
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-03-18 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.