1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: use Xoops\Core\Kernel\Handlers\XoopsGroupPermHandler;
13:
14: /**
15: * Publisher class
16: *
17: * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
18: * @license GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
19: * @package Publisher
20: * @since 1.0
21: * @author trabis <lusopoemas@gmail.com>
22: * @version $Id$
23: */
24:
25: include_once dirname(__DIR__) . '/include/common.php';
26:
27: class PublisherGroupPermHandler extends XoopsGroupPermHandler
28: {
29: /**
30: * Check permission
31: *
32: * @param string $gperm_name
33: * @param int $gperm_itemid
34: * @param array|int $gperm_groupid
35: * @param int $gperm_modid
36: * @param bool $trueifadmin
37: *
38: * @return bool
39: */
40: public function checkRight($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid = 1, $trueifadmin = true)
41: {
42: $trueifadmin = false;
43: return parent::checkRight($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid, $trueifadmin);
44: }
45: }
46: