Simple Membership Plugin › Forums › Simple Membership Plugin › Permissions snag
- This topic has 9 replies, 2 voices, and was last updated 9 years ago by
mbrsolution.
-
AuthorPosts
-
November 23, 2017 at 3:22 am #12550
web3
ParticipantTo be clear at the outset – there are two sets of permissions involved in this problem:
1) Web site permissions – managed by Simple Membership
2) WP Contacts database permissions – managed by WP contacts affecting ONLY the database for editing.I’ve been using WP Membership on a small club (non-profit) new site since June 2017. It performs flawlessly and is a perfect solution.
However, I’ve run into a snag. I’ve installed WP Contacts (“https://codecanyon.net/item/wp-contacts-contact-management-plugin/11871172”) and use 4 databases with it.These all work very well also except for one item. My database admin has Member/Subscriber level access (in Simple Membership) *to the site*. For the *WP Contacts databases* she has Full Access permissions. The database home page where data are displayed has WP Membership access set to Member and Administrator levels. So she has page access.
When she tries to export data from the database she gets an error dialog with this message:
The admin of this site does not allow users to access the wp dashboard.
Go back to the home page by clicking here.
She has all the necessary permissions so I am not sure why she is getting this message. NOTE: When we export from the database, the page url changes from
“https://nuatv.com/wp-nuatv”
to
“https://nuatv.com/wp-admin/admin-post.php”I am not sure if that has any relevance to the problem but included it in case it is meaningful.
I have a test account for the site. Normally, this is set at Member/Subscriber level. I gave that test account Full Permissions for the database. Then I tried logging in with that account and had exactly the same error message. As a Member/Subscriber on the site with Full Access to the database, I could not export data. I elevated the test account to Admin/Administrator and logged back into the site. This time I was able to export data from the database without any problem. So users with Admin access to the site CAN export data.
From this it appears there MAY be a permission I need to set to enable her as a Member/Subscriber to export from the database.
I have submitted a ticket with WP contacts but they indicate the permissions problem is with either WP or Simple Membership, not with WP contacts. The permissions for the WP Contacts database have been verified as correct.
I would be very grateful for any help with this. I CAN elevate the database admin to a site admin to get this to work but I would prefer not to do that.
November 23, 2017 at 5:12 am #12555mbrsolution
ModeratorHi, please read the following documentation. Let me know if this helps you in any way.
Kind regards
November 23, 2017 at 5:22 am #12556web3
ParticipantThank you, but it does not.
The DB Admin does not currently HAVE admin permissions for the site so she does not see the admin bar on the front end. She does not have access to the WP Dashboard at all. That is not the problem.She is unable to export data from the WP contacts database as a “member” user.
If I change her web site permissions to Admin though, she is able to export data from the WP Contacts database without problem.WP Contacts databases can be viewed and managed from the front end. In fact, since she has Full Access to the DATABASE, she can do everything EXCEPT export data. IE, add new records, delete records, edit records, even manage the fields in the database, all from the front end. Her DATABASE full Access permissions enable all that.
I am sorry if I failed to make that clear.
November 23, 2017 at 5:32 am #12557mbrsolution
ModeratorHi, thank you for clarifying your issue further. In that case this plugin does not control the type of permission you want to grant your DB Admin. This plugin only controls access to the content of pages, post and feed.
In your case you will probably need to install a third party plugin to manage your site permissions.
Let me know if you need more help.
Kind regards
November 27, 2017 at 4:42 pm #12576web3
ParticipantWell, now I am confused. I have you telling me this is not a WP Membership Issue and WP Membership only controls page access. So I removed any access limitations set by WP Membership from the page where the export option appears. I still got the error. So I contacted the WP Contacts database developer, explained the problem and he replied: ” It’s not about database access, it’s about access to admin-post.php, so in a sense page access. A typical installation has no issue with authenticated users accessing the WordPress admin-post.php. ” I thought perhaps server level permissions might need to be set differently for admin-post.php.
I DID install the User Profile Editor and tried giving the Secretary account “export” capability, but I still got the error.
I appear to be caught in the unenviable position of using two plugins, one of which MAY be causing a problem, and each plugin representative suggesting it is the other plugin.
So, let me ask this. I have the following Simple Membership plugins installed and activated:
Simple Membership After Login Redirection
Simple Membership Form Shortcode
Simple Membership WP User Import
Simple WordPress Membership
If I DEactivate any or all of these to test exporting without them, will I loose any settings or any data that I would have to re-construct if I RE-activated them after testing export?
Obviously, I am thinking that by deactivating the Simple Membership plugin and all addons it eliminates it as a possible source for the problem. I could not bear having to reconstruct all this though.November 27, 2017 at 11:25 pm #12578mbrsolution
ModeratorHi, no you will not loose any data from Simple Membership plugin and the addons. However just to make sure nothing funny goes on, first create a backup then carry out your test.
Let me know how you go.
Kind regards
November 27, 2017 at 11:30 pm #12579web3
ParticipantI back up daily using UpdraftPlus “https://wordpress.org/plugins/updraftplus/” which includes the WP database. It is backed up to a Google drive – so remote. I don;t EVER want to test it or HAVE to use it.
DEactivating all of Simple Membership gives me the heebee jeebees so I’ll have to think about it long and hard before I decide to actually do it. I’ll also check the the WP contacts developer to see if he thinks there is merit in the idea since it is his plugin that is not working correctly. I WILL let you know the outcome, one way or another. THANK you!
November 27, 2017 at 11:36 pm #12582mbrsolution
ModeratorNo problem. Looking forward to your reply.
Kind regards
November 28, 2017 at 5:02 pm #12591web3
ParticipantGood morning. And here is the reply. I suppose, when we look at it, this was operator error – ie my mistake. Here’s a direct quote from the WP Contacts plugin developer who found it:
So, yes WP Membership is the culprit affecting access there and the setting under General Settings -> Disable Access to WP Dashboard in their plugin affects access to exporting in WP Contacts.
They must lump access to admin-post.php in that setting there. I unchecked that option and I can now successfully export with WP Contacts as the Visitor user. I don’t know if you want to leave that disabled and allow them access to their profile or see if they can give you a way to leave access to admin-post.php alone while disabling dashboard access. Either way, that is the culprit and affects exporting.
I found that in General Settings but maybe you can also set it per user role, in that case you could maybe override it for the roles you want to be able to export from WP Contacts but I don’t know if they have that capability or not.
Without seeing the site, this may be confusing. But everything is working just fine.
I still have login access to restricted pages on the site. Not ALL pages are restricted.
I have a link to the Profile page on the Home page. The Home page is unrestricted but the profile page IS restricted so only valid signed in club members can get to their profile page.
Access to the database is via an Administrative Menus page which restricts access to Members and Admins. IE, no visitor access.
The link to the Admin Menus page is hidden – not on a menu so members should not wander there. If they do, each individual database permission prohibits them from opening any of the databases there.
Admins who need database access have the permission level set for the specific database by username in settings for each specific databaseAll is good. Thank you for your interest in the solution. I hope the results are helpful in the very unlikely event one of you other users has something similar.
November 28, 2017 at 10:38 pm #12594mbrsolution
ModeratorThank you for sharing. I am sure that someone who runs into a similar situation will find this post helpful.
Enjoy the plugin.
Kind regards
-
AuthorPosts
- You must be logged in to reply to this topic.