On Sat, Jun 29, 2013 at 10:56 AM, Mark Lee <[email protected]> wrote:

> I found this to work the way I wanted:
>
> if test -n "$AuthId"
> then
> .... wikish code goes here and executes only if logged in.....
> fi
>


What you've come up with here is a good solution.  You can also use pmwiki
conditionals like so:

if test --pmwiki auth edit MyGroup.MyPage
then
   ... wikish code goes here and executes only if user has edit privileges
on MyGroup.MyPage
fi

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.

-Peter
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to