$user->get('gid') returns empty

This board for support questions on Joomla 1.6 RC (= Release Candidate - which should NOT be used on a production server) is NO longer active because Joomla 1.6.0 has been released.

>> For Joomla! 1.6 Support Questions, please use http://forum.joomla.org/viewforum.php?f=614 instead <<
Locked
greno
Joomla! Intern
Joomla! Intern
Posts: 89
Joined: Tue Feb 13, 2007 4:53 am

$user->get('gid') returns empty

Post by greno » Wed Aug 11, 2010 4:06 pm

$user->get('gid') is returning empty under Joomla 1.6.

With the new ACL how should we be handling groups?

And specifically what replaces $user->get('gid')? I'm assuming it's something like putting all the groups into an array like:

Code: Select all

$getGroups = JAccess::getGroupsByUser($user->get('id'));
In the case of multiple groups which one would you select?
Which one was $user->get('gid') selecting previously?

Locked

Return to “Joomla! 1.6 RC Support [closed]”