04-21-2009, 04:46 AM
|
#3 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
Quote:
Originally Posted by Jim
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
__________________
|
|
|