feat(web/blogs): allow super users to see hidden blogs

This commit is contained in:
Baoshuo Ren 2022-04-14 15:34:16 +08:00
parent 80c3956012
commit eed0026dba
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -40,5 +40,5 @@ EOD;
</div>
<?php endif ?>
<h3>博客总览</h3>
<?php echoLongTable(array('id', 'poster', 'title', 'post_time', 'zan', 'is_hidden'), 'blogs', "is_hidden = 0 or poster = '{$myUser['username']}'", 'order by post_time desc', $header, 'echoBlogCell', $config); ?>
<?php echoLongTable(array('id', 'poster', 'title', 'post_time', 'zan', 'is_hidden'), 'blogs', isSuperUser($myUser) ? "1" : "is_hidden = 0 or poster = '{$myUser['username']}'", 'order by post_time desc', $header, 'echoBlogCell', $config); ?>
<?php echoUOJPageFooter() ?>