Tags:
create new tag
view all tags

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

Name Type Size Values Tooltip message Attributes
CsoportTagok checkbox 2   Please select the members!  

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

TWiki version: unspecified
TWiki plugins:  
Server OS: Linux, Debian
Web server: Apache2
Perl version: v5.8.8
Client OS:  
Web Browser: Mozilla Firefox
Categories: Permissions, Authorisation, Forms

-- BedoSandor - 18 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.

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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-03-25 - KennethLavrsen
 
  • 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.