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
1 changed files with 4 additions and 3 deletions

View File

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