Changeset 2166

Show
Ignore:
Timestamp:
04/30/08 22:17:36 (5 months ago)
Author:
bchoate
Message:

Removed redundant publish itemset actions.

Files:

Legend:

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

    r2131 r2166  
    414414    return { 
    415415        'entry' => { 
    416             'set_published' => { 
    417                 label      => "Publish Entries", 
    418                 order      => 100, 
    419                 code       => "${pkg}Entry::publish_entries", 
    420                 permission => 'edit_all_posts,publish_post', 
    421                 condition  => sub { 
    422                     return 0 if $app->mode eq 'view'; 
    423                     return $app->blog && $app->blog->site_path ? 1 : 0; 
    424                   } 
    425             }, 
    426416            'set_draft' => { 
    427417                label      => "Unpublish Entries", 
     
    469459        }, 
    470460        'page' => { 
    471             'set_published' => { 
    472                 label      => "Publish Pages", 
    473                 order      => 100, 
    474                 code       => "${pkg}Entry::publish_entries", 
    475                 permission => 'manage_pages', 
    476                 condition  => sub { 
    477                     return 0 if $app->mode eq 'view'; 
    478                     return $app->blog && $app->blog->site_path ? 1 : 0; 
    479                 }, 
    480             }, 
    481461            'set_draft' => { 
    482462                label      => "Unpublish Pages",