Change WordPress user roles and capabilities Forums How to or FAQ Access to all Posts of a specific Custom Post Type and limit other Pages by ID Reply To: Access to all Posts of a specific Custom Post Type and limit other Pages by ID

#6731
Vladimir
Keymaster

1st issue was resolved. User icomm sees ‘Pages’ menu now. Problem was that his 1st role has “Admin menu” “Not Selected” blocking model, but the 2nd role – “Selected”. When URE builds general admin menu for 2 roles it take blocking model from the 1st role and if blocking model of the 2nd role is different then it’s ignored. As a result ‘Pages’ menu was blocked via “Admin menu” restrictions set for the 1st role.

2nd part, it’s possible to allow user to see/edit the single page via its ID, but has edit access to the full list of another custom post type. Use custom filter ure_restrict_edit_post_type for this purpose.

Let me know if you will need help with a code for this custom filter.