Changeset 2822

Show
Ignore:
Timestamp:
07/21/08 01:34:04 (4 months ago)
Author:
bchoate
Message:

Update to fix commenter permission test for sysadmins with no blog permissions. BugId:80684

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/App.pm

    r2781 r2822  
    13691369    my ($author) = @_; 
    13701370 
     1371    return 0 if $author->is_superuser; 
     1372 
    13711373    # Check if the user is a commenter and keep them from logging in to the app 
    13721374    my @author_perms = $app->model('permission')->load( 
     
    14121414    my $blog = $app->model('blog')->load($commenter_blog_id) 
    14131415        or return $app->error($app->translate("Can\'t load blog #[_1].", $commenter_blog_id)); 
    1414     my $url = $app->config('CGIPath') . $app->config('CommentScript'); 
     1416    my $path = $app->config('CGIPath'); 
     1417    $path .= '/' unless $path =~ m!/$!; 
     1418    my $url = $path . $app->config('CommentScript'); 
    14151419    $url .= '?__mode=edit_profile'; 
    14161420    $url .= '&commenter=' . $commenter->id;