2012-12-14 Sergio Martin <sergio.martin@artica.es>

* operation/events/events.php: Disable the events view
	when event replication is enabled



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7285 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-12-14 08:26:50 +00:00
parent 40a209bfee
commit eadc5d5749
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-14 Sergio Martin <sergio.martin@artica.es>
* operation/events/events.php: Disable the events view
when event replication is enabled
2012-12-10 Sancho Lerena <slerena@artica.es>
* datos_agente.php, snapshot.php: Seems some browsers

View File

@ -32,6 +32,13 @@ if (! check_acl ($config["id_user"], 0, "IR")) {
return;
}
if(isset($config['event_replication']) && $config['event_replication'] == 1) {
db_pandora_audit("ACL Violation",
"Trying to access event viewer. View disabled due event replication.");
ui_print_error_message('Event viewer is disabled due event replication. For more information, please contact with the administrator');
return;
}
if (is_ajax ()) {
$get_event_tooltip = (bool) get_parameter ('get_event_tooltip');
$validate_event = (bool) get_parameter ('validate_event');