Rules for more than one role and PHP warnings in debug.log
-
Hi there,
First, thanks for all your good work, it’s a great plugin.
I have a question and a report.
My question is about behaviour when you assign more than one role to a user.
For example, I want all my users (except admins) to be also subscribers, and then add some capabilities through various roles on top of that.
Editors are editors (I didn’t change anything to that standard role).
Affiliates don’t have any post/page editing rights and have no access to the admin panel, they have the same capabilities as subscribers, but have access to protected pages on the website.
I’d like for a user to be both editor (so they can be listed as posts/pages authors) and affiliate (so they can access protected pages on the website).
However, when I add the affiliate role to an editor, they are not listed anymore as authors. I have to remove the affiliate role in order for them to get editor capabilities again. Is there a way around that?
Also, I wanted to report dozens of PHP warning (though about the same line of code) when using the plugin. We’re using PHP 8.3 with WP 6.9.1 in case it matters:
[04-Mar-2026 21:40:46 UTC] PHP Warning: Undefined variable $title_text in /home/[domain]/public_html/wp-content/plugins/capability-manager-enhanced/includes/admin.php on line 1618
You must be logged in to reply to this topic.