[eluser]ptvw2011[/eluser]
Hello friends,
I am making a web application which has 3 account types. Each account types will have meta data associated with it. Personal information like cellphone, address etc which may or may not be viewable by others depending on the users preferences. For each role, different functions will be available.
As it stands I have a database table which has a user_id as a foreign key and various permission fields like show_cellphone or receive_notifications. I will use integers to check if they can or cant do something.
I am thinking of using session to read this table when a user logs in to figure out what they can and cant do and what should be shown.
Or should I load a helper function which performs this?
Or maybe I should wrap my classes in a class which detects all this from the beginning?
All opinions welcome.
Many thanks and I hope you have a good day.