Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
MURALIDHARAN RAMASAMY
0 points
Beginner
Hi Mark
Ajax call failing for subscriber role in all PP themes when we use ajax calls in plugins,
This problem is not yet resolved lasting for many years
Please add a check for ajax calls defined('DOING_AJAX') && DOING_AJAX
so that ajax works for subscriber roles also .
If we use ajax calls in plugin, it is showing Oops! You do not have sufficient permissions to access this page for subscriber users.
To prevent this error,
Please add a check for ajax calls defined(‘DOING_AJAX’) && DOING_AJAX in class_admin.php while checking for if( !user_can($userdata->ID, 'administrator') && !user_can($userdata->ID, contributor') && !user_can($userdata->ID, 'editor') )
Thanks
Murali
Hi Mark
Ajax call failing for subscriber role in all PP themes when we use ajax calls in plugins,
This problem is not yet resolved lasting for many years
Please add a check for ajax calls
defined('DOING_AJAX') && DOING_AJAX
so that ajax works for subscriber roles also .
If we use ajax calls in plugin, it is showing Oops! You do not have sufficient permissions to access this page for subscriber users.
To prevent this error,
Please add a check for ajax calls
defined(‘DOING_AJAX’) && DOING_AJAX
in class_admin.php while checking forif( !user_can($userdata->ID, 'administrator') && !user_can($userdata->ID, contributor') && !user_can($userdata->ID, 'editor') )
Thanks
Murali
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now