The way you are going about it won't prevent users from setting their styles to ones restricted for certain user groups. All they have to do to get around it is to set the style in their url.
If you truly want to do this right, you need to add a field to the style database that includes which usergroups may use that style.
Then you need to set up a way to store that info and change the style dropdowns to only include authorized styles.
Finally, you need to change the code (it used to be in global.php) that sets a user's style to ensure that a user isn't using a style they shouldn't.
And before you ask, I honestly don't have time to do it for you. I wrote a version for VB2 but never ported it over.
|