Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Restrict editing pages by user role? › Reply To: Restrict editing pages by user role?
29/09/2015 at 17:25
#1716
Vladimir
Keymaster
Add to the begin of function:
function restrict_post_list($query) {
if (is_super_admin() || current_user_can('administrator')) {
return $query;
}
...
or change the initial if
condition to:
if (is_blog_admin() && !(is_super_admin() || current_user_can('administrator')) && current_user_can('franchise')) {