Page 1 of 1

Function if user is an admin

Posted: Fri Dec 20, 2013 7:44 pm
by BanditBBS
I remember if being discussed once before, many many moons ago, but I can't find it. What is the function to find out if the current user is an admin? Working on my component and want to display some things only if the user is an admin. And while I'm at it, is there a function to see if they have advanced permissions?

Re: Function if user is an admin

Posted: Fri Dec 20, 2013 8:09 pm
by BanditBBS
Holy crap, I found it: http://support.nagios.com/forum/viewtop ... 16&t=21605

That helps with finding if they are admin, but anything similar for advance perms?

Re: Function if user is an admin

Posted: Mon Dec 23, 2013 9:17 am
by scottwilkerson

Code: Select all

is_advanced_user()