Hello guys I've built an admin panel which now I have to protect based on which user try to access it. I need something in php and mySQL so that I can check in the middle of my code if the user (with $_SESSION['thisUser']
) has permission to modify or only view something. I'd need it easy cos I'm not good at building php classes.. don't know something that I can call like
if( $user->hasPermission('write-news') )
// write news
Any help? thanks in advance!