Question
Hello,
I want to set up a user group, where the
list of members is easily maintainable via a nice form added to the topic of the group. The form works fine, and the group shows the correct content on views, but I think access controll rule evaluation does not use the same variable replacements like the view method, because defined access controll does not work, and the %GROUPS% (
TWikiGroups) table shows the unsubstituted %FORMFIELD{...}% variable, like this:
My Main.FooWebGroup has these relevant lines: (and an added form of course...)
* Set GROUP = %FORMFIELD{"GroupMembers"}%
Current group members are: %GROUP%
After I set up a value via the attached form to GroupMembers, the Main.FooWebGroup shows the correct substituted value of the %GROUP% variable, but it does not in the %GROUPS% (
TWikiGroups) table, and does not work access controll in connection with Main.FooWebGroup.
How can I make form-based-group-membership-modifications work? I have to provide users an easier way to manipulate
Set GROUP = lines in groups, than directly editing topic contents.
My original question was:
DynamicAllowTopicChange... Thanks for the answer, but actually didn't help.
Environment
--
BedoSandor - 23 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.
>
>
I do not believe any ALLOW, DENY or GROUP settings work when using %FORMFIELD. I believe the reason is that access rights are checked before such a variable is evaluated.
>
>
-- KennethLavrsen - 23 Feb 2007
>
Yes, that can be... if so, I think that's the wrong evaluation order.
Is it able to change the order somehow? Why does not TWiki do substitutions before ALLOW,DENY,GROUP evaluations? I think that would provide a great functionality to TWiki. Form-based things would be very useful.
--
BedoSandor - 24 Feb 2007
Let me answer to myself!

If I place % EDITPREFERENCES{}% into the topic of the group, it shows an
edit button. That does exactly what I need.
--
BedoSandor - 27 Feb 2007
Similarily, I want to create dynamic groups based on the %SEARCH{} results of a user's %FORMFIELD(s) . I have a large, frequently changing user set with a %FORMFIELD defining the user's role (poweruser, regularuser, restricteduser, etc). Manually updating the GROUP lists is too much effort. How do I get %GROUPS% to update with %SEARCH results?
--
KenLockhart - 11 Apr 2008
Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 03 Jun 2008