blocks/wflinks_top.php 1 location
|
@@ 40-46 (lines=7) @@
|
37 |
|
$moduleHandler = xoops_getHandler('module'); |
38 |
|
$module = $moduleHandler->getByDirname($moduleDirName); |
39 |
|
|
40 |
|
if (!$gpermHandler->checkRight($permType, $cid, $groups, $module->getVar('mid'))) { |
41 |
|
if ($redirect === false) { |
42 |
|
return false; |
43 |
|
} |
44 |
|
|
45 |
|
redirect_header('index.php', 3, _NOPERM); |
46 |
|
} |
47 |
|
unset($module); |
48 |
|
|
49 |
|
return true; |
class/utility.php 1 location
|
@@ 63-69 (lines=7) @@
|
60 |
|
|
61 |
|
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
62 |
|
$gpermHandler = xoops_getHandler('groupperm'); |
63 |
|
if (!$gpermHandler->checkRight($permType, $cid, $groups, $xoopsModule->getVar('mid'))) { |
64 |
|
if ($redirect === false) { |
65 |
|
return false; |
66 |
|
} |
67 |
|
|
68 |
|
redirect_header('index.php', 3, _NOPERM); |
69 |
|
} |
70 |
|
|
71 |
|
return true; |
72 |
|
} |
include/search.inc.php 1 location
|
@@ 28-34 (lines=7) @@
|
25 |
|
$moduleHandler = xoops_getHandler('module'); |
26 |
|
$module = $moduleHandler->getByDirname($moduleDirName); |
27 |
|
|
28 |
|
if (!$gpermHandler->checkRight($permType, $cid, $groups, $module->getVar('mid'))) { |
29 |
|
if ($redirect === false) { |
30 |
|
return false; |
31 |
|
} |
32 |
|
|
33 |
|
redirect_header('index.php', 3, _NOPERM); |
34 |
|
} |
35 |
|
unset($module); |
36 |
|
|
37 |
|
return true; |