dual_alliance Posted August 31, 2006 Share Posted August 31, 2006 Well its not really about the CMS system.... but l have 9 different types of access levels and l need 3 to access it. I currently have:[code=php:0] // Does the user have admin previlages? if($accessLevel !== 7 || 8 || 9){ die('You do not have permission to access the admin control panel!'); }else{[/code]And it doesn't seem to be working... I have tried putting brackets around the numbers but that didnt workCan anyone please shed some light on this?Thanks,dual_alliance Quote Link to comment Share on other sites More sharing options...
.josh Posted August 31, 2006 Share Posted August 31, 2006 if ($accessLevel < 7) { die(...);} else { ...}if that doesn't work, try echoing out $accessLevel and see if it's holding what it's supposed to be holding. Quote Link to comment Share on other sites More sharing options...
dual_alliance Posted August 31, 2006 Author Share Posted August 31, 2006 Cheers man, worked perfectly ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.