[ic] How Do I Check For Super-user?

Thomas J.M. Burton tom at globalfocusdm.com
Fri Feb 18 00:34:28 UTC 2011

On 2/17/2011 4:02 PM, Mike Heins wrote:
> Quoting Thomas J.M. Burton (tom at globalfocusdm.com):
>> On 2/17/2011 2:28 PM, Thomas J.M. Burton wrote:
>>> Hi IC Users,
>>> I want to add a notification/message area into the HTML for the
>>> Admin pages and need to be able to display different things for
>>> Super-user accounts. I've been searching the user maillist and
>>> grepping code and can't seem to figure out how best to approach
>>> this.
>>> My attempts have included using embedded perl in the admin pages
>>> and a UserTag, both using some kind of check for $Vend::superuser
>>> or $Vend::Session->{superuser} to no avail.
>>> Any suggestions or tips for setting up something like this?
> What's wrong with:
> 	[if-mm super]
> 	Admit it, you're a superuser.
> 	[/if-mm]
> I think that even works embedded...

Hi Mike,

The only thing that's wrong with that solution is that I wasn't 
previously aware of it. Other than that, it works fine. :)


Global Focus Digital Media, LLC


More information about the interchange-users mailing list