Panel restriction bug

Fixed a panel restriction bug reported by Ankur here

http://www.8.php-fusion.net/forum/viewthread.php?thread_id=4015&pid=28176
Merge pull request #11 from JoiNNN/master

 Panel restriction bug