Skip to content

Commit

Permalink
if current user cant add a post die
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn committed Apr 2, 2013
1 parent 45b46eb commit 34a80b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bulk-entry.php
Expand Up @@ -96,6 +96,11 @@ function get_editor_id() {
}

function wp_ajax_bulk_entry_submit_post() {

if ( ! current_user_can( 'add_post' ) ) {
echo '{ "content" : "You don\'t have permission to do that"}';
die();
}
$reply = $this->start_block( array( 'bulk-entry-notification' ) );
$reply .= $this->start_left_block();
$reply .= " ";
Expand Down

0 comments on commit 34a80b2

Please sign in to comment.