| @@ 374-382 (lines=9) @@ | ||
| 371 | ||
| 372 | // Get information about log-in status and its group |
|
| 373 | $is_logged = Context::get('is_logged'); |
|
| 374 | if($is_logged) |
|
| 375 | { |
|
| 376 | $logged_info = Context::get('logged_info'); |
|
| 377 | if($logged_info->group_list && is_array($logged_info->group_list)) |
|
| 378 | { |
|
| 379 | $group_list = array_keys($logged_info->group_list); |
|
| 380 | } |
|
| 381 | else $group_list = array(); |
|
| 382 | } |
|
| 383 | ||
| 384 | // Get xml information for looping DB list |
|
| 385 | if(!is_array($db_list)) $db_list = array($db_list); |
|
| @@ 1991-1999 (lines=9) @@ | ||
| 1988 | // Set variables to grant group permission |
|
| 1989 | $module_srl = $module_info->module_srl; |
|
| 1990 | $grant_info = $xml_info->grant; |
|
| 1991 | if($member_info->member_srl) |
|
| 1992 | { |
|
| 1993 | if(is_array($member_info->group_list)) $group_list = array_keys($member_info->group_list); |
|
| 1994 | else $group_list = array(); |
|
| 1995 | } |
|
| 1996 | else |
|
| 1997 | { |
|
| 1998 | $group_list = array(); |
|
| 1999 | } |
|
| 2000 | // If module_srl doesn't exist(if unable to set permissions) |
|
| 2001 | if(!$module_srl) |
|
| 2002 | { |
|