编辑post.php
,在
</svg><?= $this->category == null ? "未分类" : $this->category(); ?></span>
后面加入
<span class="item"><?php $currGroup = get_object_vars($this->user) ['row']['group'];if ($currGroup == "administrator"): ?>
<a href="<?php $this->options->adminUrl('write-post.php?cid=' . $this->cid ); ?>" target="_blank">编辑</a>
<?php endif; ?></span>