hasPermission(UserPermissions::CREATE_OWN_POST) ?? false; $canDelete = ($GLOBALS["currentUser"]?->id === $topicAuthor->id && $topicAuthor->hasPermission(UserPermissions::DELETE_OWN_TOPIC)) || ($GLOBALS["currentUser"]?->hasPermission(UserPermissions::DELETE_OTHER_TOPIC)); ?>
Started by = htmlentities($topicAuthor->displayName) ?> (deleted) on = htmlentities($topic->creationDate->format("c")) ?>