[pmwiki-users] wikish checking if user logged in
pbowers at pobox.com
Thu Jul 4 08:31:29 CDT 2013
On Sat, Jun 29, 2013 at 10:56 AM, Mark Lee <mark.lee.phd at gmail.com> wrote:
> I found this to work the way I wanted:
> if test -n "$AuthId"
> .... wikish code goes here and executes only if logged in.....
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
... wikish code goes here and executes only if user has edit privileges
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users