| @@ 30-32 (lines=3) @@ | ||
| 27 | // Find if the user is admin of the module | |
| 28 | $isAdmin = sf_userIsAdmin(); | |
| 29 | // If the user is not admin AND we don't allow user submission, exit | |
| 30 | if (!($isAdmin | |
| 31 | || (isset($xoopsModuleConfig['allowrequest']) | |
| 32 | && $xoopsModuleConfig['allowrequest'] == 1 | |
| 33 | && (is_object($xoopsUser) || (isset($xoopsModuleConfig['anonpost']) && $xoopsModuleConfig['anonpost'] == 1)))) | |
| 34 | ) { | |
| 35 |     redirect_header('index.php', 1, _NOPERM); | |
| @@ 32-34 (lines=3) @@ | ||
| 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 | |
| 33 | || (isset($xoopsModuleConfig['allowsubmit']) && $xoopsModuleConfig['allowsubmit'] == 1 | |
| 34 | && (is_object($xoopsUser) | |
| 35 | || (isset($xoopsModuleConfig['anonpost']) | |
| 36 | && $xoopsModuleConfig['anonpost'] == 1)))) | |
| 37 | ) { | |