add capabilities check for quomicpress

This commit is contained in:
John Bintz 2009-08-25 18:34:01 -04:00
parent 959c6d861f
commit daa489032b
1 changed files with 6 additions and 4 deletions

View File

@ -131,6 +131,7 @@ function cpm_add_pages() {
if (($option = generate_comic_categories_options('category')) !== false) { if (($option = generate_comic_categories_options('category')) !== false) {
if (cpm_option('cpm-enable-quomicpress') == 1) { if (cpm_option('cpm-enable-quomicpress') == 1) {
if (count($cpm_config->errors) == 0) { if (count($cpm_config->errors) == 0) {
if (current_user_can('edit_post')) {
wp_register_sidebar_widget( 'dashboard_quomicpress', __("QuomicPress (Quick ComicPress)", "comicpress-manager"), 'cpm_quomicpress_widget', wp_register_sidebar_widget( 'dashboard_quomicpress', __("QuomicPress (Quick ComicPress)", "comicpress-manager"), 'cpm_quomicpress_widget',
array( 'width' => 'half' ) array( 'width' => 'half' )
); );
@ -140,6 +141,7 @@ function cpm_add_pages() {
} }
} }
} }
}
} }
/** /**