Question
Hi,
I've tried to make a web for my colleges with easy-to-use access control. The idea is this: the web should have a %WEB%.WritersGroup group which controls the CHANGE permission in this web or in particular topics. This user group should have a nice TWiki form to select easier it's members. My first problem was if I tried to set up a
Set ALLOWTOPICCHANGE = %WEB%.WritersGroup rule. It does not work if I write
the %WEB%.WritersGroup, but works fine if I write the exact
Myweb.WritersGroup form. How can I make this work as usual?
(Maybe it's a wrong idea to have groups outside the Main web?? I think it's not, because in this way it's closer to things it controls... Some kind of encapsulation...)
My next problem came up in the
Set GROUP = %FORMFIELD{"CsoportTagok"}% part of the group. The value of the form field is correct if I view the group topic, and %GROUP% shows the correct content after the
GROUP = ... line, but users listed in the
CsoportTagok form field have no CHANGE permissions at all.

They can edit the page only if I replace the %FORMFIELD% with the exact list in the markup. --- Maybe this is the same problem. Is it able to solve this? It yes: how??
| Set GROUP = %FORMFIELD{"CsoportTagok"}% |
--- does not work |
| Set Group = OneUser, Main.OtherUser |
--- does work fine |
And last: I have an other small problem with the form I've created. It seems to work fine. I've SEARCHed the users from the Main web and it list it correctly, but save has no effect if I switch off all checkboxes in the form. It works only if at least one checkbox is switched on...
MyForm: (this form is added to the
WritersGroup group)
CsoportTagok: (the SEARCH lists all users registered into the Main web. It works fine.)
| *Name* | *Type* | *Tooltip message* |
%SEARCH{ "[F]irstName.*?value=" scope="Main" regex="on" nosearch="on" nototal="on" format="| %MAINWEB%.$topic | option | $formfield(Email) |" web="%MAINWEB%" }%
I use TWiki_4.0.5-8 installed from a Debian package.
Thank You!
s.
Environment
--
BedoSandor - 18 Feb 2007
Answer
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.
Groups have to be defined in the Main web.
You cannot use FORMFIELD for access control settings. The access controls are read before any of the twiki variables get expanded with few exceptions.
The problem with not being able to unselect a single checkbox should be solved in 4.1.2
--
KennethLavrsen - 25 Mar 2007