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:

Shownext - am i missing something? (1998) Search (1997) Counting LineItems (2000) Fileinfo... (2000) WebCat2b12--[searchstring] bug (1997) Sorting Numbers (1997) Bug or syntax error on my part? (1997) Help with dates (2001) WC Database Format (1997) Trouble with Netscape (1998) Example Search Form (1997) Multiple prices (1997) Two prices in shoppingcart? (1997) Up and running ... at last !! (1997) Latin Characters (1998) HomePage Caution (1997) catagories (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Logical and or in [hideif] (1997) hmmm (2006)