[resolved] Password-protected categories

Found a bug? Tell us!!
Post Reply
CaptainCrunch
Regular
Posts: 34
Joined: Thu Oct 20, 2005 4:51 pm
Contact:

[resolved] Password-protected categories

Post by CaptainCrunch »

While playing around a little with password-protected categories, I found something kinda strange:

I set up one password-protected category that may only show one entry on the frontpage.
Whenever a password is set for that category, I can't see the entry within "Edit entries" wihtin the backend (logged in as the admin).

Maybe it's another Postgres-related problem? In this case, I don't really know what to look for, sorry... :oops:

Next problem with this plugin: when I know the ID for postings within password-protected categories, I simple can display them without problems. Wouldn't it be nice to have password-protected entries?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Password-protected categories

Post by garvinhicking »

Actually, the whole logic in the plugin for not applying a password check was wrong. It needs to be reverted from

Code: Select all

                    if (!defined('IN_installer') && IN_installer === false || !defined('IN_upgrader') || IN_upgrader === false) {
                        return true;
                    }
to

Code: Select all

                    if (defined('IN_installer') && IN_installer === true || defined('IN_upgrader') && IN_upgrader === true) {
                        return true;
                    }
Then the pw check should not be applied in the backend.
Next problem with this plugin: when I know the ID for postings within password-protected categories, I simple can display them without problems. Wouldn't it be nice to have password-protected entries?
But this does work! Remember that if you entered the password once, you are authenticated for those categories/entries until you close your browser!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CaptainCrunch
Regular
Posts: 34
Joined: Thu Oct 20, 2005 4:51 pm
Contact:

Post by CaptainCrunch »

Great. One more bug fixed. :)
But this does work! Remember that if you entered the password once, you are authenticated for those categories/entries until you close your browser!
Damn. Sorry, I forgot that this isn't S)Y's own authentication working there. :oops:
Post Reply