<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 29, 2013 at 10:56 AM, Mark Lee <span dir="ltr"><<a href="mailto:mark.lee.phd@gmail.com" target="_blank">mark.lee.phd@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I found this to work the way I wanted:<br><br>if test -n "$AuthId"<br>then<br></div><div>.... wikish code goes here and executes only if logged in.....<br>

</div><div>fi</div></blockquote></div><br><br></div><div class="gmail_extra">What you've come up with here is a good solution.  You can also use pmwiki conditionals like so:<br><br></div><div class="gmail_extra">if test --pmwiki auth edit MyGroup.MyPage<br>

then<br></div><div class="gmail_extra">   ... wikish code goes here and executes only if user has edit privileges on MyGroup.MyPage<br></div><div class="gmail_extra">fi<br><br></div><div class="gmail_extra">That allows you a little more flexibility if later you will have people with a username/password who do not have edit privileges on the page in question.<br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Peter<br></div></div>