Re: Not Authorised Adding Items

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18790
interpreted = N
texte = >I'm still having a problem with having a non-admin user try to add products >to the database , I know you can take the $append out of method=POST action=AdminAdded.tmpl$append> and add it field by field in >the adminadded.tmpl >but i thought this was fixed when the tpl templates came out changing >
>to > > > >but this still doesn't seem to work right , i still get a authorization >failed by non-admin users, > >Does any one have a way around this without having to append each field in >the adminadded.tpl ?Yes, there are three ways to get this to work:1- Add append to your CommandsAllowed preference. 2- Change the CommandSecurity preference from T to F. 3- Stop using the append command altogether, and instead, use [append] contexts exclusively.Choice #3 is the most secure. It's also harder to code in WebDNA, so the choice you make will depend upon your ultimate goal ... Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Not Authorised Adding Items (Chris W. 1998)
  2. Re: Not Authorised Adding Items (Kenneth Grome 1998)
>I'm still having a problem with having a non-admin user try to add products >to the database , I know you can take the $append out of method=POST action=AdminAdded.tmpl$append> and add it field by field in >the adminadded.tmpl >but i thought this was fixed when the tpl templates came out changing > >to > > > >but this still doesn't seem to work right , i still get a authorization >failed by non-admin users, > >Does any one have a way around this without having to append each field in >the adminadded.tpl ?Yes, there are three ways to get this to work:1- Add append to your CommandsAllowed preference. 2- Change the CommandSecurity preference from T to F. 3- Stop using the append command altogether, and instead, use [append] contexts exclusively.Choice #3 is the most secure. It's also harder to code in WebDNA, so the choice you make will depend upon your ultimate goal ... Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Code sample - links.tpl (2002) Changing price for a SLU based on options (size, etc.) (1997) credit card # checker ??? (2004) StoreBuilder ADD 2 CART redirects to default.tpl - PLEASE STOPTHIS! (2002) Include error (2000) [WebDNA] help with [ReturnRaw] - why is it killing the parse of the [include] file? (2009) Security (2002) Credit Card processing (1998) PCS Frames (1997) Need relative path explanation (1997) OT: RAID Options (2004) Certificates? (2005) special commerce fields (1997) formatting a number (1999) Looking for a host (1997) Replace context problem ... and answers (1997) stumped on simple sort (1999) Webcat/Webmerchant part II (1998) FAX orders (1996) Don't know if this is a silly question... (2003)