Skip to content

Commit

Permalink
Add fix for unlimited author moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Aug 16, 2000
1 parent 0d2ce4f commit 74eca6a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions public_html/comments.pl
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,15 @@ sub moderateCid {
"cid=$cid and sid='$sid'"
);

my($mid) = sqlSelect(
"id", "moderatorlog",
"uid=$I{U}{uid} and cid=$cid and sid='$sid'"
);
if ($mid) {
print "<LI>$subj ($sid-$cid, <B>Already moderated</B>)</LI>";
return;
unless ($I{U}{aseclev} > 99 && $I{authors_unlimited}) {
my($mid) = sqlSelect(
"id", "moderatorlog",
"uid=$I{U}{uid} and cid=$cid and sid='$sid'"
);
if ($mid) {
print "<LI>$subj ($sid-$cid, <B>Already moderated</B>)</LI>";
return;
}
}

my $modreason = $reason;
Expand Down
16 changes: 9 additions & 7 deletions themes/slashcode/htdocs/comments.pl
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,15 @@ sub moderateCid {
"cid=$cid and sid='$sid'"
);

my($mid) = sqlSelect(
"id", "moderatorlog",
"uid=$I{U}{uid} and cid=$cid and sid='$sid'"
);
if ($mid) {
print "<LI>$subj ($sid-$cid, <B>Already moderated</B>)</LI>";
return;
unless ($I{U}{aseclev} > 99 && $I{authors_unlimited}) {
my($mid) = sqlSelect(
"id", "moderatorlog",
"uid=$I{U}{uid} and cid=$cid and sid='$sid'"
);
if ($mid) {
print "<LI>$subj ($sid-$cid, <B>Already moderated</B>)</LI>";
return;
}
}

my $modreason = $reason;
Expand Down

0 comments on commit 74eca6a

Please sign in to comment.