Normal users cannot init or remove message parsers anymore

This commit is contained in:
Andre Lorbach 2010-02-23 14:36:38 +01:00
parent 33fce7e795
commit b3f724f5a7

View File

@ -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