Skip to content

Commit

Permalink
Updated to better handle logtoken validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroom committed Apr 5, 2007
1 parent e758b9c commit 28d488a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/FireHose/firehose.pl
Expand Up @@ -39,13 +39,11 @@ sub main {

# XXX Need to define who has access to this
my $rss = $form->{op} eq "rss" && $form->{content_type} && $form->{content_type} =~ $constants->{feed_types};



my $op = $form->{op};

if ($form->{logtoken} && !$rss) {
$op = 'default';
redirect($ENV{SCRIPT_NAME});
}

if (!$op || !exists $ops{$op} || !$ops{$op}[ALLOWED] || $user->{seclev} < $ops{$op}[2] ) {
Expand Down

0 comments on commit 28d488a

Please sign in to comment.