mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Normal users cannot init or remove message parsers anymore
This commit is contained in:
parent
33fce7e795
commit
b3f724f5a7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user