Try if (config.options.txtUserName != "Me" && config.options.txtUserName ! = "Another guy") { readOnly = true; showBackstage = false;}
For other users with edit access, simply keep appending && config.options.txtUserName !="..." to the if condition On Feb 3, 4:59 am, Claudio Li <kwn...@gmail.com> wrote: > Tried the following, but failed (both users cannot edit the wiki) > > if(config.options.txtUserName != "Me") { > readOnly = true; > showBackstage = false;} > > if(config.options.txtUserName != "Another guy") { > readOnly = true; > showBackstage = false; > > } > > On 3 February 2010 03:35, Mike <eris...@gmail.com> wrote: > > > An alternate method (albeit longer) > > > if (config.options.txtUserName!="SomeName") { > > readOnly=true; > > showBackstage=false;} > > > Each user with editing access would be a new line replacing SomeName > > > Good Luck ! > > > Mike > > > On Feb 2, 11:13 am, "Mark S." <throa...@yahoo.com> wrote: > > > Possibly you could try: > > > > readOnly="Name1;Name2;Name3".indexOf(config.options.txtUserName)==-1 ; > > > > As long as the names aren't subsets of each other > > > ("Jon","Joni","Jonis"...) > > > > On Feb 2, 7:33 am, Dusty Jones <stell...@gmail.com> wrote: > > > > > I'm trying to make my wiki read only for everyone but a few users. I'm > > > > currently doing it by using flagging it read only for everyone but > > > > myself using the > > > > > readOnly=config.options.txtUserName!='My User Name' > > > > > in the loading options. But I want to make it so that more uses can > > > > edit and have default read/write access. Is there a way to do > > > > something like > > > > > txtUserName!='My User Name' OR 'This User Name' OR 'That User Name' > > > > > I'm not familiar with the syntax, but I gave that a shot and it didn't > > > > work out too well :P > > > > > Any help on this is appreciated! > > > -- > > You received this message because you are subscribed to the Google Groups > > "TiddlyWiki" group. > > To post to this group, send email to tiddlyw...@googlegroups.com. > > To unsubscribe from this group, send email to > > tiddlywiki+unsubscr...@googlegroups.com<tiddlywiki%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/tiddlywiki?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.