Changeset 2919
- Timestamp:
- 08/11/08 20:59:08 (4 months ago)
- Files:
-
- branches/release-42/lib/MT/App/CMS.pm (modified) (2 diffs)
- branches/release-42/lib/MT/CMS/Entry.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-42/lib/MT/App/CMS.pm
r2916 r2919 422 422 return { 423 423 'entry' => { 424 'set_published' => {425 label => "Publish Entries",426 order => 100,427 code => "${pkg}Entry::publish_entries",428 permission => 'edit_all_posts,publish_post',429 condition => sub {430 return 0 if $app->mode eq 'view';431 return $app->blog && $app->blog->site_path ? 1 : 0;432 },433 },434 424 'set_draft' => { 435 425 label => "Unpublish Entries", … … 477 467 }, 478 468 'page' => { 479 'set_published' => {480 label => "Publish Pages",481 order => 100,482 code => "${pkg}Entry::publish_entries",483 permission => 'manage_pages',484 condition => sub {485 return 0 if $app->mode eq 'view';486 return $app->blog && $app->blog->site_path ? 1 : 0;487 },488 },489 469 'set_draft' => { 490 470 label => "Unpublish Pages", branches/release-42/lib/MT/CMS/Entry.pm
r2871 r2919 2043 2043 or return $app->errtrans( 2044 2044 "One of the entries ([_1]) did not actually exist", $id ); 2045 next if $entry->status == $new_status;2046 2045 if ( $app->config('DeleteFilesAtRebuild') 2047 2046 && ( MT::Entry::RELEASE() eq $entry->status ) )
