Show
Ignore:
Timestamp:
09/02/08 02:06:03 (15 months ago)
Author:
auno
Message:

Fixed error for during upgrade from MT3.x. BugzID:81774

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/MT/Upgrade.pm

    r2948 r3013  
    1717#    * Template check for all blogs 
    1818 
    19 use vars qw(%classes %functions $App $DryRun $Installing $SuperUser  
     19use vars qw(%classes %functions %LegacyPerms $App $DryRun $Installing $SuperUser 
    2020            $CLI $MAX_TIME $MAX_ROWS @steps); 
    2121 
     
    7171        }, 
    7272    ); 
     73 
     74    %LegacyPerms = ( 
     75        # System-wide permissions 
     76        #[ 2**0, 'administer', 'System Administrator', 2, 'system' ], 
     77        #[ 2**1, 'create_blog', 'Create Blogs', 2, 'system' ], 
     78        #[ 2**2, 'view_log', 'View System Activity Log', 2, 'system' ], 
     79        #[ 2**3, 'manage_plugins', 'Manage Plugins', 'system' ], 
     80 
     81        # Blog-specific permissions: 
     82        # The order here is the same order they are presented on the 
     83        # role definition screen. 
     84        2**0 => 'comment',# 'Add Comments', 1, 'blog'],  
     85        2**12 => 'administer_blog',# 'Blog Administrator', 1, 'blog'],  
     86        2**6 => 'edit_config',# 'Configure Blog', 1, 'blog'],  
     87        2**3 => 'edit_all_posts',# 'Edit All Entries', 1, 'blog'],  
     88        2**4 => 'edit_templates',# 'Manage Templates', 1, 'blog'],  
     89        2**2 => 'upload',# 'Upload File', 1, 'blog'],  
     90        2**1 => 'post',# 'Create Entry', 1, 'blog'],  
     91        2**16 => 'edit_assets',# 'Manage Assets', 1, 'blog'], 
     92        2**15 => 'save_image_defaults',# 'Save Image Defaults', 1, 'blog'],  
     93        2**9 => 'edit_categories',# 'Add/Manage Categories', 1, 'blog'],  
     94        2**14 => 'edit_tags',# 'Manage Tags', 1, 'blog'],  
     95        2**10 => 'edit_notifications',# 'Manage Notification List', 1, 'blog'],  
     96        2**8 => 'send_notifications',# 'Send Notifications', 1, 'blog'],  
     97        2**13 => 'view_blog_log',# 'View Activity Log', 1, 'blog'],  
     98        #[ 2**17, 'publish_post', 'Publish Post', 1, 'blog'], 
     99        #[ 2**18, 'manage_feedback', 'Manage Feedback', 1, 'blog'], 
     100        #[ 2**19, 'set_publish_paths', 'Set Publishing Paths', 1, 'blog'], 
     101        #[ 2**20, 'manage_pages', 'Manage Pages', 1, 'blog'], 
     102        # 2**5 == 32 is deprecated; reserved for future use  
     103        2**7 => 'rebuild',# 'Rebuild Files', 1, 'blog'],  
     104        # Not a real permission but a denial thereeof; unlisted because it  
     105        # has no label.  
     106        2**11 => 'not_comment',# '', 1, 'blog'], 
     107    ); 
    73108} 
    74109