a not-admin role able to view directory and send new announcement


Home Forums Front End PM PRO a not-admin role able to view directory and send new announcement

This topic is: Not Resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18590
    Huy Le Duong Nguyen
    Participant

    Hi,

    How to fix when a not-admin role (client) able to view directory and send new announcement, even I have done:
    – Not check on Show Directory
    – Check only admin to send message

    In the previous support, you have suggested me to check on “Can permit users add Announcement from front-end” so that admin is able to send new announcement. Does it cause this issue?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #18606
    Huy Le Duong Nguyen
    Participant

    Hi,

    another issue with role: I sent an announcement to a role called “Vendor”; however, another role is able to read it. I have checked roles of that user. it has only one role and not “Vendor” role.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #18616
    shamim
    Keymaster

    Do you have any custom code for this plugin?
    Did you add that user as whitelisted in Front End PM PRO > Settings > Security?

    #18621
    Huy Le Duong Nguyen
    Participant
    This reply has been marked as private.
    #18626
    shamim
    Keymaster

    1. All users of client roles can view directory & add announcements?
    2. Please send me capabilities of client role.

    #18654
    Huy Le Duong Nguyen
    Participant
    This reply has been marked as private.
    #18667
    shamim
    Keymaster

    Please let me know following

    1. All users of client roles can view directory & add announcements?
    2. Please send me capabilities of client role. (which plugin add this role? To know what i mean with capabilities please see https://codex.wordpress.org/Roles_and_Capabilities)

    Please add following code in your theme’s (child themes if any) functions.php

    add_filter( 'fep_admin_cap', function( $admin_cap ){
        return 'administrator';
    });
    

    If still it does not work then i need to debug your website with php code. You can deactivate all plugins except this and change theme to one of default theme (unmodified). Then test. Then activate one by one.
    OR you can give me FTP access (only wp-content directory access is ok) so that i can debug your website. If you give me FTP access please use https://www.shamimsplugins.com/sensitive-information/

    #18735
    Huy Le Duong Nguyen
    Participant

    Thank you your code. I think that the issue comes from Cacher. I have not added your code yet, but clean Cacher. Then the issue is fixed. non-admin users are now not able to view Directory and Send Announcement.

    #18759
    shamim
    Keymaster

    Exclude your message/announcement page from caching.

Viewing 9 posts - 1 through 9 (of 9 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.