@@ 35-37 (lines=3) @@ | ||
32 | // Find if the user is admin of the module |
|
33 | $isAdmin = Smartfaq\Utility::userIsAdmin(); |
|
34 | // If the user is not admin AND we don't allow user submission, exit |
|
35 | if (!($isAdmin |
|
36 | || (isset($xoopsModuleConfig['allowrequest']) |
|
37 | && 1 == $xoopsModuleConfig['allowrequest'] |
|
38 | && (is_object($xoopsUser) || (isset($xoopsModuleConfig['anonpost']) && 1 == $xoopsModuleConfig['anonpost']))))) { |
|
39 | redirect_header('index.php', 1, _NOPERM); |
|
40 | } |
@@ 38-40 (lines=3) @@ | ||
35 | // Find if the user is admin of the module |
|
36 | $isAdmin = Smartfaq\Utility::userIsAdmin(); |
|
37 | // If the user is not admin AND we don't allow user submission, exit |
|
38 | if (!($isAdmin |
|
39 | || (isset($xoopsModuleConfig['allowsubmit']) && 1 == $xoopsModuleConfig['allowsubmit'] |
|
40 | && (is_object($xoopsUser) |
|
41 | || (isset($xoopsModuleConfig['anonpost']) |
|
42 | && 1 == $xoopsModuleConfig['anonpost']))))) { |
|
43 | redirect_header('index.php', 1, _NOPERM); |