Skip to content

Commit

Permalink
Unapprove and undelete an item when moving it between queues, so you …
Browse files Browse the repository at this point in the history
…can't

 sneak an item onto the frontpage through someone else's queue.
  • Loading branch information
icculus committed Jun 14, 2002
1 parent b8bd1e9 commit 3a2f793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IcculusNews_daemon.pl
Expand Up @@ -1088,7 +1088,8 @@ sub generate_pword {
report_error($err), return 1 if defined $err;

my $link = get_database_link();
my $sql = "update $dbtable_items set queueid=$newqueue" .
my $sql = "update $dbtable_items" .
" set queueid=$newqueue, deleted=0, approved=0" .
" where id=$id and queueid=$queue";

my $rc = $link->do($sql);
Expand Down

0 comments on commit 3a2f793

Please sign in to comment.