| @@ 392-400 (lines=9) @@ | ||
| 389 | ||
| 390 | // Get information about log-in status and its group |
|
| 391 | $is_logged = Context::get('is_logged'); |
|
| 392 | if($is_logged) |
|
| 393 | { |
|
| 394 | $logged_info = Context::get('logged_info'); |
|
| 395 | if($logged_info->group_list && is_array($logged_info->group_list)) |
|
| 396 | { |
|
| 397 | $group_list = array_keys($logged_info->group_list); |
|
| 398 | } |
|
| 399 | else $group_list = array(); |
|
| 400 | } |
|
| 401 | ||
| 402 | // Get xml information for looping DB list |
|
| 403 | if(!is_array($db_list)) $db_list = array($db_list); |
|
| @@ 2014-2022 (lines=9) @@ | ||
| 2011 | // Set variables to grant group permission |
|
| 2012 | $module_srl = $module_info->module_srl; |
|
| 2013 | $grant_info = $xml_info->grant; |
|
| 2014 | if($member_info->member_srl) |
|
| 2015 | { |
|
| 2016 | if(is_array($member_info->group_list)) $group_list = array_keys($member_info->group_list); |
|
| 2017 | else $group_list = array(); |
|
| 2018 | } |
|
| 2019 | else |
|
| 2020 | { |
|
| 2021 | $group_list = array(); |
|
| 2022 | } |
|
| 2023 | // If module_srl doesn't exist(if unable to set permissions) |
|
| 2024 | if(!$module_srl) |
|
| 2025 | { |
|