Show
Ignore:
Timestamp:
07/10/08 21:21:13 (17 months ago)
Author:
bchoate
Message:

Fixed test for blog 'allow_commenter_regist' when externalusermanagement is enabled. Case # 80055

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/lib/MT/App/Comments.pm

    r2644 r2749  
    242242            elsif ( MT::Auth::NEW_LOGIN() == $result ) { 
    243243                my $registration = $app->config->CommenterRegistration; 
    244                 unless ( $registration && $registration->{Allow} && $blog->allow_commenter_regist ) { 
     244                unless ( $registration && $registration->{Allow} && ( $app->config->ExternalUserManagement || $blog->allow_commenter_regist ) ) { 
    245245                    return $app->login_form( error => $app->translate('Successfully authenticated but signing up is not allowed.  Please contact system administrator.') ) 
    246246                      unless $commenter; 
     
    11481148            my $blog = MT::Blog->load($blog_id) 
    11491149                or return $app->error($app->translate('Can\'t load blog #[_1].', $blog_id)); 
    1150             if ( $registration->{Allow} && $blog->allow_commenter_regist ) { 
     1150            if ( $registration->{Allow} && ( $app->config->ExternalUserManagement || $blog->allow_commenter_regist ) ) { 
    11511151                # By policy, this blog permits this type of user 
    11521152                # and they are not banned (as they have no blog perms/