1 2 3 4 5 6 7
<?php if (!$currentUser) { http_response_code(403); msg_error("You need to be logged in to create new topics!"); exit; }