mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// 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"))) {
|
if ((! file_exists("../../include/config.php")) || (! is_readable("../../include/config.php"))) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -26,14 +28,10 @@ require_once ('../../include/auth/mysql.php');
|
|||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Real start
|
|
||||||
session_start ();
|
|
||||||
|
|
||||||
// Check user
|
// Check user
|
||||||
check_login ();
|
check_login ();
|
||||||
$config["id_user"] = $_SESSION["id_usuario"];
|
$config["id_user"] = $_SESSION["id_usuario"];
|
||||||
|
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "ER")) {
|
if (! check_acl ($config['id_user'], 0, "ER")) {
|
||||||
db_pandora_audit("ACL Violation","Trying to access event viewer");
|
db_pandora_audit("ACL Violation","Trying to access event viewer");
|
||||||
require ("general/noaccess.php");
|
require ("general/noaccess.php");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user