[dw-free] Non-admins cannot report spam to their community posts
[commit: http://hg.dwscoalition.org/dw-free/rev/95e14adde193]
http://bugs.dwscoalition.org/show_bug.cgi?id=1236
Allow non-maintainers to mark comments as spam. I.e., when you delete a
comment to a post you made.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1236
Allow non-maintainers to mark comments as spam. I.e., when you delete a
comment to a post you made.
Patch by
Files modified:
- htdocs/js/commentmanage.js
--------------------------------------------------------------------------------
diff -r 773cfddf6dce -r 95e14adde193 htdocs/js/commentmanage.js
--- a/htdocs/js/commentmanage.js Sun Jun 14 20:28:17 2009 +0000
+++ b/htdocs/js/commentmanage.js Sun Jun 14 20:37:51 2009 +0000
@@ -410,7 +410,7 @@ function createDeleteFunction (ae, dItem
finalHeight -= 15;
}
- if (remoteUser != com.u && canAdmin) {
+ if (remoteUser != "" && remoteUser != com.u) {
lbl = "ljpopdel" + dItemid + "spam";
inHTML += "<input type='checkbox' value='spam' id='" + lbl + "'> <label for='" + lbl + "'>Mark this comment as spam</label><br />";
} else {
--------------------------------------------------------------------------------
