Completed
Push — master ( 658b35...b781ca )
by Richard
28s queued 23s
created

GroupPermHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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