plugins/Nuggie.php
changeset 8 160f1170aa32
parent 7 cd46e29ae699
equal deleted inserted replaced
7:cd46e29ae699 8:160f1170aa32
    82   
    82   
    83   $session->acl_extend_scope('read', 'Blog|Planet|BlogPost', $paths);
    83   $session->acl_extend_scope('read', 'Blog|Planet|BlogPost', $paths);
    84   $session->acl_extend_scope('edit_comments', 'BlogPost', $paths);
    84   $session->acl_extend_scope('edit_comments', 'BlogPost', $paths);
    85   $session->acl_extend_scope('post_comments', 'BlogPost', $paths);
    85   $session->acl_extend_scope('post_comments', 'BlogPost', $paths);
    86   $session->acl_extend_scope('mod_comments', 'BlogPost', $paths);
    86   $session->acl_extend_scope('mod_comments', 'BlogPost', $paths);
       
    87   $session->acl_extend_scope('tag_create', 'BlogPost', $paths);
       
    88   $session->acl_extend_scope('tag_delete_own', 'BlogPost', $paths);
       
    89   $session->acl_extend_scope('tag_delete_other', 'BlogPost', $paths);
    87 }
    90 }
    88 
    91 
    89 $plugins->attachHook('page_type_string_set', 'nuggie_set_page_string();');
    92 $plugins->attachHook('page_type_string_set', 'nuggie_set_page_string();');
    90 
    93 
       
    94 require( ENANO_ROOT . '/plugins/nuggie/constants.php' );
    91 require( ENANO_ROOT . '/plugins/nuggie/planet.php' );
    95 require( ENANO_ROOT . '/plugins/nuggie/planet.php' );
    92 require( ENANO_ROOT . '/plugins/nuggie/postbit.php' );
    96 require( ENANO_ROOT . '/plugins/nuggie/postbit.php' );
    93 
    97 
    94 function nuggie_set_page_string()
    98 function nuggie_set_page_string()
    95 {
    99 {