| @@ 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 | { |
|
| @@ 400-408 (lines=9) @@ | ||
| 397 | ||
| 398 | // Get information about log-in status and its group |
|
| 399 | $is_logged = Context::get('is_logged'); |
|
| 400 | if($is_logged) |
|
| 401 | { |
|
| 402 | $logged_info = Context::get('logged_info'); |
|
| 403 | if($logged_info->group_list && is_array($logged_info->group_list)) |
|
| 404 | { |
|
| 405 | $group_list = array_keys($logged_info->group_list); |
|
| 406 | } |
|
| 407 | else $group_list = array(); |
|
| 408 | } |
|
| 409 | ||
| 410 | // Get xml information for looping DB list |
|
| 411 | if(!is_array($db_list)) $db_list = array($db_list); |
|