Custom user fields and restricting node access per field for those specific nodes. You probably already have the custom user fields if you're speaking of gender already, so it's really just an issue of a template modification to block access.I need to restrict access for 2 specific nodes.
Males cannot enter women only forum and vice versa.
I cannot find an addon for this and I really do not want to create custom usergroups as well.
Any simple way to accomplish this?
Custom user fields and restricting node access per field for those specific nodes. You probably already have the custom user fields if you're speaking of gender already, so it's really just an issue of a template modification to block access.
No, you will need to make template edits to those 3 templates.I don't see anywhere in user custom fields settings node permission settings where I can set restrictions.
The easiest way, as far as I know, is by using user groups and user group promotions.
I'm gearing towards two new user groups with promotions now. I don't have custom fields on my main site, when I made the first suggestion, but do on my dev; after clicking around, I noticed that user group promotions can be based off of custom fields.Thanks but I'm not sure what to edit/add there. Can you explain?
After setting it up, do you think automatic implementation would be made, assuming gender is already set from the beginning, if the user group promotions cron was manually run?Slight delay for them to get promoted when they fill out the field but this would probably be the cleanest approach.
We use essential cookies to make this site work, and optional cookies to enhance your experience.