Skip to content

Commit bef68ff

Browse files
committed
Security: Message: Block anonymous users to get count of messages
1 parent 3b98682 commit bef68ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/inc/ajax/message.ajax.php

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
}
3737
break;
3838
case 'get_count_message':
39+
api_block_anonymous_users(false);
3940
$userId = api_get_user_id();
4041
$invitations = MessageManager::getMessagesCountForUser($userId);
4142
header('Content-type:application/json');

0 commit comments

Comments
 (0)