diff --git a/src/admin/parsers.php b/src/admin/parsers.php index 10f8317..ba20eb4 100644 --- a/src/admin/parsers.php +++ b/src/admin/parsers.php @@ -124,6 +124,11 @@ if ( isset($_GET['op']) ) } else if ($_GET['op'] == "removeparser") { + // --- Only if the user is an admin! + if ( !isset($_SESSION['SESSION_ISADMIN']) || $_SESSION['SESSION_ISADMIN'] == 0 ) + DieWithFriendlyErrorMsg( $content['LN_ADMIN_ERROR_NOTALLOWED'] ); + // --- + if ( isset($_GET['id']) ) { //PreInit these values @@ -179,6 +184,11 @@ if ( isset($_GET['op']) ) } else if ($_GET['op'] == "initparser") { + // --- Only if the user is an admin! + if ( !isset($_SESSION['SESSION_ISADMIN']) || $_SESSION['SESSION_ISADMIN'] == 0 ) + DieWithFriendlyErrorMsg( $content['LN_ADMIN_ERROR_NOTALLOWED'] ); + // --- + if ( isset($_GET['id']) ) { //PreInit these values