Home › Forums › MapPress Support › Mashup restriction with Role Scope plugin › Reply To: Mashup restriction with Role Scope plugin
April 17, 2013 at 9:09 am
#12278
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…