SID-00196: Form based access control
| Status: |
Answered |
TWiki version: |
4.2.0 |
Perl version: |
5.008 |
| Category: |
CategoryAccessControl |
Server OS: |
Linux |
Last update: |
17 years ago |
I am trying to implement form-based access control for an electronic lab notebook application.
For the parent (the lab notebook):
* Set ALLOWTOPICVIEW = %SEARCH{ "^SID-00196$" 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?
I would like to avoid creating a new subweb for each lab notebook, but I may have no other choice.
--
GregoireLeclair - 17 Mar 2009
Discussion and Answer
SEARCH is not expanded in access control settings. Only a few system variables are expanded, such as
%MAINWEB%.
You would need to write a plugin for a access control GUI.
See also
WebPermissionsPlugin
--
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.