We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc5ef1 commit e20d741Copy full SHA for e20d741
2 files changed
web/js/events.js
@@ -387,7 +387,7 @@ VE.navigation.switch_menu = function(position){
387
VE.notifications.get_list = function(){
388
/// TODO get notifications only once
389
$.ajax({
390
- url: "/list/notifications/?ajax=1",
+ url: "/list/notifications/?ajax=1&token="+$('#token').attr('token'),
391
dataType: "json"
392
}).done(function(data) {
393
var acc = [];
web/list/notifications/index.php
@@ -5,7 +5,7 @@
5
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
6
7
8
-if($_REQUEST['ajax'] == 1){
+if($_REQUEST['ajax'] == 1 && $_REQUEST['token'] == $_SESSION['token']){
9
// Data
10
exec (HESTIA_CMD."v-list-user-notifications $user json", $output, $return_var);
11
$data = json_decode(implode('', $output), true);
0 commit comments