@@ 32-35 (lines=4) @@ | ||
29 | // Find if the user is admin of the module |
|
30 | $isAdmin = sf_userIsAdmin(); |
|
31 | // If the user is not admin AND we don't allow user submission, exit |
|
32 | if (!($isAdmin || (isset($xoopsModuleConfig['allowrequest']) && $xoopsModuleConfig['allowrequest'] == 1 && (is_object($xoopsUser) || (isset($xoopsModuleConfig['anonpost']) && $xoopsModuleConfig['anonpost'] == 1))))) { |
|
33 | redirect_header("index.php", 1, _NOPERM); |
|
34 | exit(); |
|
35 | } |
|
36 | ||
37 | $op = ''; |
|
38 |
@@ 34-37 (lines=4) @@ | ||
31 | // Find if the user is admin of the module |
|
32 | $isAdmin = sf_userIsAdmin(); |
|
33 | // If the user is not admin AND we don't allow user submission, exit |
|
34 | if (!($isAdmin || (isset($xoopsModuleConfig['allowsubmit']) && $xoopsModuleConfig['allowsubmit'] == 1 && (is_object($xoopsUser) || (isset($xoopsModuleConfig['anonpost']) && $xoopsModuleConfig['anonpost'] == 1))))) { |
|
35 | redirect_header("index.php", 1, _NOPERM); |
|
36 | exit(); |
|
37 | } |
|
38 | ||
39 | $op = ''; |
|
40 |