In this project I am working on there is going to be 4 user levels. Listener, Listener Premium, Artist and Artist Premium. What is the best way of going about implementing this? I was thinking of adding an extra table in the table where the user info is held called permission and set it as a INT(1) and making it so Listeners are 0, Listener Prem is 2, Artist is 3 and Artist Prem is 4. Then run a check ont he page for permissions. Or is there a better way of going about this?
User level permissions
Page 1 of 14 Replies - 724 Views - Last Post: 27 April 2011 - 08:36 PM
Replies To: User level permissions
#2
Re: User level permissions
Posted 27 April 2011 - 08:24 PM
I would think that is a good enough approach.
#3
Re: User level permissions
Posted 27 April 2011 - 08:27 PM
"extra table in the table"
Do you mean column? That would be the best and easiest approach.
Do you mean column? That would be the best and easiest approach.
#4
Re: User level permissions
Posted 27 April 2011 - 08:29 PM
Lol you know exactly what he meant.
#5
Re: User level permissions
Posted 27 April 2011 - 08:36 PM
If you're making a table, then it would have to be separate. I think the table approach is a good idea. That way, you can add additional permissions later. And add to the users table a user_permissions column with an FK to the permissions table.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote








|