jackidev
Forum Replies Created
-
Thanks! Will do that. Great plugin btw, been using it for years.
UPDATE 2: I have another site with the same PHP version and up to the 3.2.3 the plugin is working fine. The problem appears with the 3.2.4 version
UPDATE: It has not something to do with the NOTICE, but it is fault of the update.
For anyone facing issues with this, I fixed it downloading a previous version found in their website (https://wpdevart.com/wordpress-booking-calendar-plugin/). In that older version, the plugin is working fine.
I don’t know what happened because it only says something went wrong but if the update says is compatible with wordpress newest version, it should be that way.
Cool, I’ll mark it as resolved. Thanks !
Thanks to you!!
Just one final question: Does the privacy setting only works in the client code or is it validated as well in the server side?
I have given the permission.
The only way I can edit it is to allow the option “can the user edit this field?” in the form’s field settings. The only way I made it work was to set the privacy settings so only the superior role can see this field (and edit it), because if I don’t set this privacy setting, the user would edit himself into another profile.
If the “can the user edit this field?” is disabled, it doesn’t matter even if I try to edit the role with admin privileges, no one can edit it.
Thanks for your time
Update:
I didn’t notice you could put the user role in the edit user form. Thanks! However I ran into a little trouble:
If I tick off the option “can the user edit this field?”, because I don’t want him to edit himself into another role (let’s say a student role). Only a superior role (let’s say a professor role) can edit him into subscriber or into another professor. The problem is that if that option is off I can’t edit the role not even with admin privileges.
The only way I can edit it is to allow the option “can the user edit this field?”. The only way I made it work was to set the privacy settings so only the superior role can see this field (and edit it), but I don’t know if the privacy setting is only on the front (client side), that could represent a potential vulnerability.
Hi, sorry! I didn’t notice the reply. No, I haven’t tried that, would adding a user role field in the profile form work?
The way I tried was to give special permission to access the wordpress dashboard and then give them the other permissions to change another profile role. It works but I can give them admin priveleges as well.
Hi!
First I tried the option to edit certain profiles under the “user profiles” section, thinking that would also allow to change a user role.
Then I tried with the wordpress capabilities (same section), setting promote_user. That gives the option to change another user role (and I can select which type of users, which is great) but then the problems come that someone could make anyone an admin role.
Last I tried to tick the levels (level_0, level_1, until level_5) thinking that would limit the promotion (an editor role can promote someone to his same role but not above, for example) but no result. Same with playing with the profile priority.