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

Mike Heins mike at perusion.com
Fri Feb 18 00:02:47 UTC 2011


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?
> >
> >Thanks,
> >Tom
> >
> 
> Hi again,
> 
> I realized after sending that the subject for my post was missing
> the word "How". :)
> 
> Question still remains.
> 

What's wrong with:

	[if-mm super]
	Admit it, you're a superuser.
	[/if-mm]

I think that even works embedded...

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.328.4479  <mike at perusion.com>

Experience is what allows you to recognize a mistake the second time you
make it. -- unknown



More information about the interchange-users mailing list