use USERLEVEL_ADMIN

This commit is contained in:
Ian 2013-05-29 15:43:16 +02:00
parent 68fbc2112e
commit 7182b48991

View File

@ -133,7 +133,7 @@ if (!function_exists('errorToExceptionHandler')) {
exit; // make sure to exit in case of database connection errors.
}
if ($serendipity['production'] === true) {
if( serendipity_checkPermission('adminUsers') ) {
if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) {
// ToDo: enhance for more special serendipity error needs
$str = '<p> == SERENDIPITY ERROR == </p>';
$str .= '<p>Please correct:</p>';