Changeset 3637

Show
Ignore:
Timestamp:
04/23/09 10:22:32 (11 months ago)
Author:
asawada
Message:

fixed syntax errors and wrong permission.

Location:
branches/feature-permission-reconstruction/lib/MT
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/feature-permission-reconstruction/lib/MT/CMS/Comment.pm

    r3636 r3637  
    165165    my $admin                    = $app->can_do('administer_blog'); 
    166166    my $can_empty_junk           = $app->can_do('delete_junk_comments'); 
    167     my $state_editable           = $app->can_do('edit_comment_status'); 
     167    my $state_editable           = $app->can_do('edit_all_comments'); 
    168168    my $state_entry_editable     = $app->can_do('edit_all_entries'); 
    169169    my $state_commenter_editable = $app->can_do('edit_commenter'); 
     
    16261626                        $perms = $author->permissions( $obj->blog_id ); 
    16271627                    } 
    1628                     if (!$app->can_do('approve_all_trackback', $perms) { 
     1628                    if ( !$app->can_do('approve_all_trackback', $perms) ) { 
    16291629                        if ( $app->can_do('approve_own_entry_trackback', $perms) ) { 
    16301630                            return $app->errtrans( 
     
    16561656                    ); 
    16571657                } 
    1658                 if (!$app->can_do('approve_all_comment', $perms) { 
     1658                if ( !$app->can_do('approve_all_comment', $perms) ) { 
    16591659                    if ( $app->can_do('approve_own_entry_comment', $perms) ) { 
    16601660                        return $app->errtrans( 
  • branches/feature-permission-reconstruction/lib/MT/Core.pm

    r3636 r3637  
    781781        open_own_entry_comment_edit_screen: 1 
    782782        create_new_entry: 1 
     783        view_feedback: 1 
    783784        save_multiple_entries: 1 
    784785        edit_own_entry_comment_without_status: 1 
    785786    inherit_from: 
    786         - blog.manage_feedback 
    787787        - blog.edit_assets 
    788788blog.edit_all_posts: