add capabilities check for quomicpress
This commit is contained in:
parent
959c6d861f
commit
daa489032b
|
@ -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() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue