Function if user is an admin
Function if user is an admin
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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Function if user is an admin
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?
That helps with finding if they are admin, but anything similar for advance perms?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Function if user is an admin
Code: Select all
is_advanced_user()