Skip to content

Node.js based forum software built for the modern web

show post tools for global mod on delete

pichaliteaad64cad35da
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js
index 7f769f984b..07a73809ed 100644
--- a/public/src/client/topic/events.js
+++ b/public/src/client/topic/events.js
@@ -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]]');