Advise needed.
I have a new site that has 3 roles. 1 admin and 2 other make it easy call it buyer and seller
Now admin needs no profile only 1 admin in this case…like I said lets keep it simple. Now seller has a profile with lots of relations hasmany this and that HABTM other things. Where the buyer has only 1 or 2 hasMany. How could it be set up so depending on the Users role have a buyer_profile and seller_profile so depending on the user type then that’s the profile they get?
I know they could share the same but get the buyers profile might have 30 fields to get which some fields can not be null when saving yet the seller has only 10 fields pretty much optional. I figure it would be easier to keep the profiles specific to the role so I will not run into validation problems where say 5 fields are required for 1 role and the other the 5 are optional.
Ideas? Thoughts? Suggestions?
Thanks all.
Dave
No comments:
Post a Comment