Tags:
create new tag
view all tags

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:

Group Members
NobodyGroup  
FooWebGroup %FORMFIELD?
... ...

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. frown

Environment

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux 2.4
Web server: Apache/1.3.34 (Debian)
Perl version: v5.8.8 built for i486-linux-gnu-thread-multi
Client OS: Linux
Web Browser: Mozilla Firefox
Categories: Permissions, Security, Authorisation, Forms

-- BedoSandor - 23 Feb 2007

Answer

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.

>
> 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! smile 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

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-06-03 - 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.