• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6568: Cannot restrict viewing of WebTopicViewTemplate

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWiki Enhancement New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I am trying to prevent non-TWikiAdminGroup users from directly viewing the templates WebTopicNonWikiTemplate and WebTopicViewTemplate and keep them accessible as templates of inexistant topics. There seems to be no way to do this.

For WebTopicEditTemplate (or any other template) for instance i do this by adding

    * Set ALLOWTOPICVIEW = Main.TWikiAdminGroup, Main.TWikiEditors
    * Set ALLOWTOPICRENAME = Main.NobodyGroup
    * Set ALLOWTOPICCHANGE = Main.TWikiAdminGroup, Main.TWikiEditors
but the same trick does not work with the above templates because the section is only stripped in TWiki::expandVariablesOnTopicCreation(), i.e., when a topic is created from the template.

Would it be possible to extend the handling of WebTopicNonWikiTemplate and WebTopicViewTemplate and to strip the templateonly sections in a similar way?

-- TWiki:Main/StefanWalter - 2010-08-26

Not sure how to accomplish this with the current spec. Those topics are included, and INCLUDE adheres to to the access control settings. If you lock down the WebTopicNonWikiTemplate topic for view, users creating a new page would not be able to see the text of the included page.

We could open up INCLUDE with a new parameter to ignore the access control setting of the included page, but that would be a big security hole!

Any idea how to solve your need? BTW, why do you want to view restrict this admin page?

-- TWiki:Main.PeterThoeny - 2010-08-26

Summary Cannot restrict viewing of WebTopicViewTemplate
ReportedBy TWiki:Main.StefanWalter
Codebase 5.0.0
SVN Range TWiki-5.0.0, Sat, 21 Aug 2010, build 19350
AppliesTo Engine
Component TWiki
Priority Enhancement
CurrentState New


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2010-08-26 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback