Skip to content

Commit

Permalink
Fix last minute bug with subscription page
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Casadevall <mcasadevall@soylentnews.org>
  • Loading branch information
NCommander committed May 31, 2014
1 parent f551ea1 commit cfd57a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Subscribe/subscribe.pl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ sub main {
$op = 'pause' if $form->{merchant_return_link};
$user->{state}{page_adless} = 1 if $op eq 'pause';

if ($user->{is_anon} && $op !~ /^(paypal|makepayment|pause)$/) {
if (($user->{is_anon} && $op !~ /^(paypal|makepayment|pause)$/) ||
(!$user->{is_admin} && $constants->{subscribe_admin_only} == 1)) {
my $rootdir = getCurrentSkin('rootdir');
redirect("$rootdir/users.pl");
return;
Expand Down

0 comments on commit cfd57a3

Please sign in to comment.