Fixed missing bracket in check_permission.php