Permalink
Browse files

Allow Daypass readers to read article.pl and comments.pl in the future

(as well as seeing the links to same on index.pl).
  • Loading branch information...
jamiemccarthy committed Apr 1, 2005
1 parent c506d4c commit 8bc990fe30d2732c9726b15267fb040d60de5353
Showing with 4 additions and 2 deletions.
  1. +4 −2 Slash/DB/MySQL/MySQL.pm
View
@@ -7747,13 +7747,15 @@ sub _stories_time_clauses {
# First decide whether we're looking into the future or not. If we
# are going to try for this sort of thing, then either we must NOT
# be limiting it to subscribers only, OR the user must be a subscriber
- # and this page must be plummy (able to have plums).
+ # and this page must be plummy (able to have plums), OR the user must
+ # have a daypass.
my $future = 0;
$future = 1 if $try_future
&& $constants->{subscribe}
&& $future_secs
&& (!$must_be_subscriber
- || ($user->{is_subscriber} && $user->{state}{page_plummy}));
+ || ( $user->{is_subscriber} && $user->{state}{page_plummy} )
+ || $user->{has_daypass} );
# If we have NOW() in the WHERE clause, the query cache can't hold
# onto this. Since story times are rounded to the minute, we can

0 comments on commit 8bc990f

Please sign in to comment.