bugfix (public usergroup fix)

This commit is contained in:
Llewellyn van der Merwe 2014-06-27 13:36:14 +01:00
parent 177f07adff
commit 18f50efa61

View File

@ -34,11 +34,12 @@ class perGroup
// check if loged in
$this->userId = JFactory::getUser()->id;
if($this->userId){
// setup user details
// setup user groups
$this->userGroups = JUserHelper::getUserGroups($this->userId);
} else {
// setup user details
$this->userGroups = $this->params->get('group0');
$params_users = JComponentHelper::getParams('com_users');
// setup quest user groups
$this->userGroups = array($params_users->get('guest_usergroup'));
}
// check direction of execution
$up = $this->params->get('execution_direction');