Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

berkeleypa on "[Plugin: More Fields] User Role Access settings not working"

$
0
0

If anyone is interested I was able to fix this by replacing the following line of code in more-fields-object.php:

if (!current_user_can($capability)) continue;

with this:

$user = wp_get_current_user();
$userrole = $user->roles[0];
if (!in_array( $userrole, $box['more_access_cap'])) continue;

Viewing all articles
Browse latest Browse all 26892

Trending Articles