Changeset 2166
- Timestamp:
- 04/30/08 22:17:36 (5 months ago)
- Files:
-
- branches/release-37/lib/MT/App/CMS.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-37/lib/MT/App/CMS.pm
r2131 r2166 414 414 return { 415 415 '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 },426 416 'set_draft' => { 427 417 label => "Unpublish Entries", … … 469 459 }, 470 460 '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 },481 461 'set_draft' => { 482 462 label => "Unpublish Pages",
