mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
fix: anonymous if superuser removes a solution
This commit is contained in:
parent
af2b8a437a
commit
ddf5ec7413
@ -60,7 +60,7 @@
|
||||
if ($blog['poster'] != $myUser['username']) {
|
||||
$blog_link = getBlogLink($blog['id']);
|
||||
$poster_user_link = getUserLink($blog['poster']);
|
||||
$admin_user_link = getUserLink($myUser['username']);
|
||||
$admin_user_link = isSuperUser($myUser) ? '管理员' : getUserLink($myUser['username']);
|
||||
$content = <<<EOD
|
||||
<p>{$poster_user_link} 您好:</p>
|
||||
<p>您为问题 <a href="/problem/{$problem['id']}">#{$problem['id']} ({$problem['title']})</a> 提交的题解 {$blog_link} 已经被 {$admin_user_link} 移除。 </p>
|
||||
|
Loading…
Reference in New Issue
Block a user