View Single Post
Old 04-20-2009, 09:22 AM   #2 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

I think your DB tables look pretty good.

For the menu (and all other places) i would implement something like:

PHP Code:
$currentUser = new user()->getUserBySession();

if(
$currentUser->hasAccess("edit-user"))
{
  
// Has XS
}
else
{
  
// Had no XS

__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote