Show
Ignore:
Timestamp:
04/10/08 02:18:49 (20 months ago)
Author:
auno
Message:

Removed 'Clone Template' action for system and email templates. BugzID:78613

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/lib/MT/App/CMS.pm

    r1786 r1828  
    664664                code => "${pkg}Template::clone_templates", 
    665665                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                }, 
    666673                order => 400, 
    667674            },