1
Hi guys. I'm really new with XOOPS, and I've a question, maybe its too easy, but I can't figure out how to know if a user is Admin or not.
$xoopsUserIsAdmin and
$xoopsUser->isAdmin() doesn't work for me, because they tell me if the user is Admin of the current module, but what I want to know is if the user is in the Admin group.
Right now, i'm using
in_array(1, $xoopsUser->getGroups()), but i don't like this hardcoded value...
Anyone?
Sorry for my english...