mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 11:37:37 +01:00
Merge pull request #4513 from pichalite/post-tools
show post tools for global mod on post delete
This commit is contained in:
@@ -183,7 +183,7 @@ define('forum/topic/events', [
|
||||
var isDeleted = postEl.hasClass('deleted');
|
||||
postTools.toggle(data.pid, isDeleted);
|
||||
|
||||
if (!app.user.isAdmin && parseInt(data.uid, 10) !== parseInt(app.user.uid, 10)) {
|
||||
if (!app.user.isAdmin && !app.user.isGlobalMod && parseInt(data.uid, 10) !== parseInt(app.user.uid, 10)) {
|
||||
postEl.find('[component="post/tools"]').toggleClass('hidden', isDeleted);
|
||||
if (isDeleted) {
|
||||
postEl.find('[component="post/content"]').translateHtml('[[topic:post_is_deleted]]');
|
||||
|
||||
Reference in New Issue
Block a user