Function if user is an admin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Function if user is an admin

Post 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?
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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Function if user is an admin

Post 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?
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Function if user is an admin

Post by scottwilkerson »

Code: Select all

is_advanced_user()
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked