@@ 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); |
@@ 2016-2024 (lines=9) @@ | ||
2013 | // Set variables to grant group permission |
|
2014 | $module_srl = $module_info->module_srl; |
|
2015 | $grant_info = $xml_info->grant; |
|
2016 | if($member_info->member_srl) |
|
2017 | { |
|
2018 | if(is_array($member_info->group_list)) $group_list = array_keys($member_info->group_list); |
|
2019 | else $group_list = array(); |
|
2020 | } |
|
2021 | else |
|
2022 | { |
|
2023 | $group_list = array(); |
|
2024 | } |
|
2025 | // If module_srl doesn't exist(if unable to set permissions) |
|
2026 | if(!$module_srl) |
|
2027 | { |