Admin approval

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
anarbold
New Member
New Member
Posts: 6
Joined: Wed Jul 08, 2009 5:17 pm

Admin approval

Post by anarbold »

I am trying to make a library section to the web site, I am currently building.At the moment it is being build up by AV library(OS).
I have a one problem that how I can identify if the user is logged in as admin, is the anything like if(!is_logged_in()) ? I tried to find from the CMSms source code but it looks really complicated to get what I want.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Admin approval

Post by jmcgin51 »

Need a lot more information regarding your CMSMS version, what modules you're using, why/when you need to check to see if the user is logged in, etc.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Admin approval

Post by Dee »

If you're writing a module you can simply do:

Code: Select all

check_login();
Regards,
D
Post Reply

Return to “Modules/Add-Ons”