Reply To: Mashup restriction with Role Scope plugin

Home Forums MapPress Support Mashup restriction with Role Scope plugin Reply To: Mashup restriction with Role Scope plugin

#12278
amadex
Participant

Hi, I’ve found the problem. I had this in my functions.php:

——————————————————–

add_action( ‘admin_init’, ‘restrict_admin’, 1 );

function restrict_admin() {

if ( ! current_user_can( ‘manage_options’ ) ) {

wp_redirect( site_url() );

exit;

}

}

——————————————————–

Don’t understand why it was interfering with mappress ajax, but this was the cause…