Home › Forums › Front End PM PRO › a not-admin role able to view directory and send new announcement
- This topic has 8 replies, 2 voices, and was last updated 7 years, 1 month ago by Shamim Hasan.
- AuthorPosts
- October 28, 2018 at 4:34 pm #18590Huy Le Duong NguyenParticipant
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 messageIn 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.October 28, 2018 at 10:52 pm #18606Huy Le Duong NguyenParticipantHi,
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.October 29, 2018 at 7:53 am #18616Shamim HasanKeymasterDo you have any custom code for this plugin?
Did you add that user as whitelisted in Front End PM PRO > Settings > Security?October 29, 2018 at 11:18 am #18621Huy Le Duong NguyenParticipantThis reply has been marked as private.October 29, 2018 at 12:30 pm #18626Shamim HasanKeymaster1. All users of client roles can view directory & add announcements?
2. Please send me capabilities of client role.October 30, 2018 at 5:54 am #18654Huy Le Duong NguyenParticipantThis reply has been marked as private.October 30, 2018 at 2:19 pm #18667Shamim HasanKeymasterPlease 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://sp-test1.arogga.co/sensitive-information/November 2, 2018 at 10:25 pm #18735Huy Le Duong NguyenParticipantThank 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.
November 3, 2018 at 10:59 pm #18759Shamim HasanKeymasterExclude your message/announcement page from caching.
- AuthorPosts
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.