1 | <?php |
||
2 | /** |
||
3 | * TinyMCE adapter for XOOPS |
||
4 | * |
||
5 | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
||
6 | * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
||
7 | * @package class |
||
8 | * @subpackage editor |
||
9 | * @since 2.3.0 |
||
10 | * @author Laurent JEN <[email protected]> |
||
11 | */ |
||
12 | |||
13 | defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
||
14 | |||
15 | // check categories readability by group |
||
16 | $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : [XOOPS_GROUP_ANONYMOUS]; |
||
17 | $imgcat_handler = xoops_getHandler('imagecategory'); |
||
18 | |||
19 | return !(count($imgcat_handler->getList($groups, 'imgcat_read', 1)) == 0); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
20 |