Page 1 of 1

[resolved] Password-protected categories

Posted: Thu Oct 27, 2005 7:40 am
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?

Re: Password-protected categories

Posted: Thu Oct 27, 2005 11:34 am
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

Posted: Thu Oct 27, 2005 1:15 pm
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: