• Resolved Manni02

    (@manni02)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @manni02 ,

    Thank you for using our plugin.
    About the first issue, could you provide me with information regarding how you give access to protected pages on the website? In my test, access to the site with ‘Editor’ and ‘Affiliate’ still give the view of Editor plus access as Affiliate.
    https://prnt.sc/DPOG-Xg77sVL

    Meanwhile, the user with Editor and Affiliate roles is not listed anymore as authors. Could you specify regarding this one? Is it not listed on the article or only on the dashboard, which is in Authors page as follows? https://prnt.sc/omkWRrS2vZ4d

    I can see that the user with Editor and Affiliate roles still can see the menus as what Editor and Affiliate roles should see. https://prnt.sc/DZ1o66BI4U-d

    Could you confirm yours?



    Thread Starter Manni02

    (@manni02)

    Hi Riza,

    Thank you for your quick and detailed reply.

    I’ll try to clarify a few things:

    • On our site, only admins have access to the admin panel / backend, so admin panel access isn’t an issue. The issue is whether each user can access some specific areas (such as the members’ area for subscribers or the affiliate area for affiliates).
    • Protected pages either require the user to be registered and logged in (Members’ area and pages reserved to members) or part of a Learndash group (group pages, online courses, etc).
    • The main reason why I need an affiliate to be listed as author (which I believe editors are) is so that I can select them as the author of a post or a page. This is the company account, but for security and other reasons I don’t want the company account to be an admin. I just want them to be an affiliate (so that I can access our own affiliate account) and to be able to select their name as author when I write a post (as an admin) that I want to look like it’s written by the company, not by myself.
    • Because actual affiliates don’t write posts or pages, it’s not a problem for 99% of affiliates that they don’t show up in the “author” list when editing a post or page. I only want to be able to select this when I want to assign the company account as the author of a post/page.
    • Even if I add the “editor” or “author” role to that specific affiliate account, I still can’t select that account as an author when editing a post/page as an admin. I have to disable the affiliate role (which doesn’t have any editing or authoring rights) in order to be able to see the company account listed as a potential post author when I edit a post/page as an admin.
    • So I’m wondering if the fact that affiliates don’t have editor/author capabilities prevents these capabilities when that role is selected, even if they also have the editor or author role capability assigned to their account.

    I hope this clarifies.

    [ Please do not bump. ]

    • This reply was modified 3 months, 1 week ago by Manni02.
    Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @manni02 ,

    This could be a more complex issue.
    Could you check if the user with Affiliate and Editor roles has been registered as an Author?

    User: https://prnt.sc/awsZ-APjRVT8
    Author: https://prnt.sc/YEGo459mDyup

    If you did, it should appear under the dropdown option when you want to select the author for a certain post: https://prnt.sc/-45QX4m-S9i2

    Thread Starter Manni02

    (@manni02)

    Hi Riza,

    Thank you very much for this. It looks like when the user is assigned the role of affiliate, the role of editor isn’t enough to get them listed as selectable “author” of a page or post. In that case, I do need to add the “author” role to the user, and that resolves the problem.

    In other words, a user can be selected as the “author” of a post page with the following roles:

    Editor

    or

    Editor + Affiliate + Author

    but not with

    Editor + Affiliate

    Anyway, this is resolved now, so thanks a lot for your help.

    In an unrelated topic, I noticed dozens of lines like this in debug.log (we’re running PHP 8.3 / WP 6.9.4):

    [13-Mar-2026 17:00:00 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 might want to take a look…

    • This reply was modified 3 months ago by Manni02.
    Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @manni02 ,

    Glad to know that the issue has been resolved.
    For the PHP Warning, we’ll take a look and report it to the developer to fix it.

    Have a great day ahead!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.