I have a website where I want a certain element to be visible only to the members who have "permission".
I have a table in my database named members with a number of members.
In that table I have a field called usertype where I have some members who have "read" and some that have "write" as usertype, and I want that only those members who have user type "write" can see some divs on the page, etc. .
Does anyone know how to do this?