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