Changeset 1828
- Timestamp:
- 04/10/08 02:18:49 (8 months ago)
- Files:
-
- branches/release-34/lib/MT/App/CMS.pm (modified) (1 diff)
- branches/release-34/lib/MT/CMS/Template.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-34/lib/MT/App/CMS.pm
r1786 r1828 664 664 code => "${pkg}Template::clone_templates", 665 665 permission => 'edit_templates', 666 condition => sub { 667 my $app = MT->app; 668 my $tmpl_type = $app->param('filter_key'); 669 return $tmpl_type eq 'system_templates' ? 0 670 : $tmpl_type eq 'email_templates' ? 0 671 : 1; 672 }, 666 673 order => 400, 667 674 }, branches/release-34/lib/MT/CMS/Template.pm
r1823 r1828 644 644 $app->param( 'filter_key', 'archive_templates' ); 645 645 } 646 elsif ( $tmpl_type eq 'system' ) { 647 $filter = 'system_templates'; 648 $app->param( 'filter_key', 'system_templates' ); 649 } 650 elsif ( $tmpl_type eq 'email' ) { 651 $filter = 'email_templates'; 652 $app->param( 'filter_key', 'email_templates' ); 653 } 646 654 $terms->{type} = $types{$tmpl_type}->{type}; 647 655 my $tmpl_param = $app->listing(
