Home›Topic Tag: Controlling access to admin function
Topic Tag: Controlling access to admin function
Access plugin allows you to control administration capabilities in a WordPress site. You can create your own custom roles, set their permissions and choose exactly what sections different user roles can reach in the WordPress admin.
When you ask for help or report issues, make sure to tell us on which content and user types you are trying to apply access control.
Viewing 15 topics - 211 through 225 (of 225 total)
The issue here is that the customer wanted to block admin access to all his non admin users.
Solution:
Unfortunately this is not possible with our Access plugin without changing the level of the user role to below 3, however with this snippet of code below you are able to achieve this.
Add the following to your functions.php file and it should be able to do this.
add_action('admin_init', 'no_mo_dashboard');
function no_mo_dashboard() {
if (!current_user_can('manage_options') && $_SERVER['DOING_AJAX'] != '/wp-admin/admin-ajax.php') {
wp_redirect(home_url()); exit;
}
}
Problem:
Whenever I click on the Link "Access Settings" at the bottom of CRED Form Edit Interfaces, I can not see the Access Screen but a message "You do not have sufficient permissions to access this page."
Solution:
This was a BUG in CRED 1.6 and is solved in all upcoming versions of the Plugin