Page 1 of 1

Admin approval

Posted: Mon Jul 20, 2009 3:46 pm
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.

Re: Admin approval

Posted: Mon Jul 20, 2009 5:44 pm
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.

Re: Admin approval

Posted: Mon Jul 20, 2009 5:46 pm
by Dee
If you're writing a module you can simply do:

Code: Select all

check_login();
Regards,
D