Tags:
create new tag
view all tags

Question

Hi, i want to set access control on a single row in a form. so when a public user creates a topic and apply this form, i don't want public user to see(or edit) the "Priority" row(set only admin can see/edit), but public user can type in "Location" and a "Mission". e.g. if logon name is admin, then allow he view/edit "Priority", is logon name is public user, then deny he view/edit "Priority".

I try to use IfDefinedPlugin/IfStatements or something else to control this, but failed to write "control conditon" statements. How can i write the "control conditon"? Is there a way to do this? Thanks smile

Group Form

This form defines the form of a group page.

Name Type Size Values Tooltip message
Priority select 1 1, 2, 3  
Location checkbox 2 China, USA  
Mission text 40    

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Security, Forms

-- ShashaLuan - 09 Aug 2006

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.

There is no way to do this using forms.

-- CrawfordCurrie - 12 Aug 2006

Thanks, i will find another way to do this :).

-- ShashaLuan - 14 Aug 2006

You could write a Plugin that overloads form fields. The DateFieldPlugin does that sort of thing (you can take it as a base for your Plugin.)

-- PeterThoeny - 14 Aug 2006

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-08-14 - 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.