| @@ 653-661 (lines=9) @@ | ||
| 650 | if($this->module_info->use_category=='Y') |
|
| 651 | { |
|
| 652 | // get the user group information |
|
| 653 | if(Context::get('is_logged')) |
|
| 654 | { |
|
| 655 | $logged_info = Context::get('logged_info'); |
|
| 656 | $group_srls = array_keys($logged_info->group_list); |
|
| 657 | } |
|
| 658 | else |
|
| 659 | { |
|
| 660 | $group_srls = array(); |
|
| 661 | } |
|
| 662 | $group_srls_count = count($group_srls); |
|
| 663 | ||
| 664 | // check the grant after obtained the category list |
|
| @@ 396-404 (lines=9) @@ | ||
| 393 | $config->enable_autosave = 'N'; |
|
| 394 | } |
|
| 395 | // Check a group_list of the currently logged-in user for permission check |
|
| 396 | if(Context::get('is_logged')) |
|
| 397 | { |
|
| 398 | $logged_info = Context::get('logged_info'); |
|
| 399 | $group_list = $logged_info->group_list; |
|
| 400 | } |
|
| 401 | else |
|
| 402 | { |
|
| 403 | $group_list = array(); |
|
| 404 | } |
|
| 405 | // Pre-set option variables of editor |
|
| 406 | $option = new stdClass(); |
|
| 407 | $option->module_type = $config->module_type; |
|