Advertisement:

If user = admin

Aloittaja bobdole2281, elokuu 16, 2013, 02:45:12 IP

« edellinen - seuraava »

bobdole2281

I already have code to tell if a user is signed in. Is there a way to tell if the user is an admin?

4Kstore

globalize $context and then use $context['user']['is_admin']

¡¡NEW MOD: Sparkles User Names!!!

Arantor

That won't always work depending on where the code in question is - if it's in SSI or using the API, that won't work...

So what code is being used?
Holder of controversial views, all of which my own.


Advertisement: