Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Working out if someone is an "admin" ?

Quote Reply
Working out if someone is an "admin" ?
Hi,

Ok, I have a feeling there is gonna be a really easy solution for this - but I can't work it out :(

At the moment, I need to work out if a user is "admin" - to give them access to a certain function. Now, I'm already doing stuff via the "action", so only members/mods/admins can view the functions I'm working on - but doing:

Code:
print $IN->header;
use Data::Dumper;
print Dumper($USER);

..doesn't really give me the info I need.

Furthermore, I'm looking in the UserGroups table - and I can't see any obviouse way to determine if a username is classed as "admin" (only seems there are groups for Guest/Registered/Moderators).

Am I missing something really stupid? (been a long day, so wouldn't suprise me :P)

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Working out if someone is an "admin" ? Andy 8771 Dec 4, 2008, 7:50 AM
Thread Re: [Andy] Working out if someone is an "admin" ?
gotze 8559 Dec 6, 2008, 12:59 PM
Thread Re: [gotze] Working out if someone is an "admin" ?
Andy 8566 Dec 7, 2008, 12:22 AM
Thread Re: [Andy] Working out if someone is an "admin" ?
Wychwood 8546 Dec 8, 2008, 2:28 AM
Post Re: [Wychwood] Working out if someone is an "admin" ?
Andy 8500 Dec 8, 2008, 2:44 AM
Thread Re: [Wychwood] Working out if someone is an "admin" ?
brewt 8508 Dec 8, 2008, 11:27 AM
Thread Re: [brewt] Working out if someone is an "admin" ?
Andy 8481 Dec 8, 2008, 11:42 PM
Thread Re: [Andy] Working out if someone is an "admin" ?
carminejg3 7937 Apr 15, 2009, 12:55 PM
Post Re: [carminejg3] Working out if someone is an "admin" ?
Andy 7859 Apr 16, 2009, 12:50 AM