bugfix (public usergroup fix)
This commit is contained in:
parent
177f07adff
commit
18f50efa61
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user