Permission level - medium !== Medium

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
tipsen
Posts: 10
Joined: Mon Jul 02, 2007 10:11 am

Permission level - medium !== Medium

Post by tipsen »

I had some problems regarding the permission level mentioned above! I used "Medium" and not "medium" which caused problems with restricted posts being visible in the Top10 and the 5latest listings.

Several hours of looking in the files and checking the sql-queries as well as the php-code finally revealed the problem in the file Faq.php:

if ($faqconfig->get('main.permLevel') == 'medium') {
$this->groupSupport = true;
}

This is a case sensitive check and after changing from "Medium" to "medium" everything worked as expected! I also experienced problems with the listings in the categories when using "Medium" and everything seems to work fine now.

I don't think other checks are case sensitive since some of the functionality regarding permissions worked fine when using Medium!

I just wanted to write this since some of the posting on this forum lead me to believe that others are experiencing problems that might be caused by this small error!

Regards, Tommy Ipsen
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi Tommy,
please could you file a bug in http://bugs.phpmyfaq.de?
Thanks for bring the issue to our attention!

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
tipsen
Posts: 10
Joined: Mon Jul 02, 2007 10:11 am

Post by tipsen »

matteo wrote:Hi Tommy,
please could you file a bug in http://bugs.phpmyfaq.de?
Done!
Post Reply