View Single Post
Old 04-21-2009, 04:46 AM   #3 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Quote:
Originally Posted by Jim View Post
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

Oh Jim, just to be picky and boring as usual:
PHP Code:
$instance = new Object()->method(); 
Will result in a parse error ;)


As for the real question, Wildhoney gave a good idea about this in this thread:
Easy to Modify Login Script with Hierarchical User Permissions and XML Account File
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote