I am having a problem where if a page requires a role to view it, the “Access Error Message” always shows on the page whether the user has the correct role or not. If the user does not have the role, the Access Error Message shows correctly. If the user does have the role, then both the page content and the Access Error Message shows. The Access Error Message shows above the page content. What is wrong here? How can I get the Access Error Message to go away if the user has access to the page? I am using version 4.35.2.
Description of settings:
In User Role Editor – Settings -> Additional Modules
Activate content view restrictions – checked
These are selected:
Allow View
All visitors (logged in or not)
Show Access Error Message
The error access message is
[permission_denied_message]
I create a page with the
Allow View
Selected User Roles: bbp_moderator
Show access error message