Skip to content

Commit 6a35b41

Browse files
committed
Fixed bug when no SQL WHERE condition was passed to the get_user_group_privileges() function - credit to ovvessem
1 parent 2be6fcc commit 6a35b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library_files/application/libraries/Flexi_auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ public function get_user_group_privileges_query($sql_select = FALSE, $sql_where
10901090
if (! $sql_where)
10911091
{
10921092
$sql_where = array($this->CI->auth->tbl_col_user_privilege_groups['group_id'] =>
1093-
$this->CI->auth->session_data[$this->CI->auth->session_name['group']]);
1093+
key($this->CI->auth->session_data[$this->CI->auth->session_name['group']]));
10941094
}
10951095

10961096
return $this->CI->flexi_auth_model->get_user_group_privileges($sql_select, $sql_where);

0 commit comments

Comments
 (0)