diff --git a/application/third_party/ion_auth/models/Ion_auth_model.php b/application/third_party/ion_auth/models/Ion_auth_model.php index f7cb30c..dec6a74 100644 --- a/application/third_party/ion_auth/models/Ion_auth_model.php +++ b/application/third_party/ion_auth/models/Ion_auth_model.php @@ -1648,7 +1648,7 @@ public function get_users_groups($id = FALSE) // if no id was passed use the current users id $id || $id = $this->session->userdata('user_id'); - return $this->db->select($this->tables['users_groups'].'.'.$this->join['groups'].' as id, '.$this->tables['groups'].'.name, '.$this->tables['groups'].'.description') + return $this->db->select($this->tables['users_groups'].'.'.$this->join['groups'].' as id, '.$this->tables['groups'].'.name, '.$this->tables['groups'].'.description,'.$this->tables['groups'].'.bgcolor') ->where($this->tables['users_groups'].'.'.$this->join['users'], $id) ->join($this->tables['groups'], $this->tables['users_groups'].'.'.$this->join['groups'].'='.$this->tables['groups'].'.id') ->get($this->tables['users_groups']);