Permissions in plugin template code?

Matt
Joined: 14 Nov 2009

Permissions in plugin template code?

Posted:22 Oct 2012 (19:30 UTC)
I'm trying to insert some conditional code into one of my Liberty plugins to hide a maintenance-only link from the anonymous users - it's a simple link in the modified "Include" plugin, leading back to the included Wiki page.

I tried to do it in two or three different ways, but every method would produce a server error, because what the condition is referring to, is not an object.

So, from what I know, it's not being passed down to the plugin in the PHP code. I don't really know how to do it, help?
Lester Caine
Joined: 24 Apr 2004

Re: Permissions in plugin template code?

Posted:30 Oct 2012 (21:35 UTC)
{if $gBitUser->isAdmin()}Admin bits{/if}

{if $gBitUser->isRegistered()}Registered bits{/if}
Matt
Joined: 14 Nov 2009

Re: Permissions in plugin template code?

Posted:02 Nov 2012 (03:20 UTC)
Thank you, Lester! This one worked. YTB!
  Page 1 of 1  1 
Post
If you are already registered, please enter your login credentials.
Anonymous Post