Fixed sound_events access in Pandora 6. Ticket #2691
This commit is contained in:
parent
bab32a5c85
commit
378bcf09c3
|
@ -13,8 +13,10 @@
|
|||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
// Load global vars
|
||||
// Real start
|
||||
session_start ();
|
||||
|
||||
// Load global vars
|
||||
if ((! file_exists("../../include/config.php")) || (! is_readable("../../include/config.php"))) {
|
||||
exit;
|
||||
}
|
||||
|
@ -26,14 +28,10 @@ require_once ('../../include/auth/mysql.php');
|
|||
|
||||
global $config;
|
||||
|
||||
// Real start
|
||||
session_start ();
|
||||
|
||||
// Check user
|
||||
check_login ();
|
||||
$config["id_user"] = $_SESSION["id_usuario"];
|
||||
|
||||
|
||||
if (! check_acl ($config['id_user'], 0, "ER")) {
|
||||
db_pandora_audit("ACL Violation","Trying to access event viewer");
|
||||
require ("general/noaccess.php");
|
||||
|
|
Loading…
Reference in New Issue