Closed (fixed)
Project:
Node access password
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2011 at 08:50 UTC
Updated:
28 Aug 2013 at 18:14 UTC
this module is useful for me.
and will it be possible that , ask user to type in password when he try to access the protected node ?
Comments
Comment #1
danielb commentedYeah I've thought about this before, it would be a nicer workflow. It might also let us grant anonymous access?
Just have to work out how to give this option to the user instead of 'access denied' or whatever it does atm.
Comment #2
danielb commentedAlright one thing to do would be to hook_menu_alter the node_menu and use our own callbacks and access to handle it.
Comment #3
danielb commentedThen we'd have to undo the changes of http://api.drupal.org/api/drupal/modules--node--node.module/function/nod...
in our own http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...
Plus add in theming or something to hide the node displays.
And then see how that goes.
This could be risky, could introduce security flaws.
Comment #4
danielb commentedMight be a while before I get around to this.
Comment #5
ewa777 commentedHow is this anonymous user access coming along? Will it be for Drupal 6? Just wondering cause the Protected Node Module hasn't been updated and it does not work with profiles that use panels. Just curious! Thanks!
Evan
Comment #6
danielb commentedI haven't done anything on this. I don't think it will be possible.
I might be able to create a block or something where you can type the password. That would allow you to put it on a Views page to enable you to see the node listed in the view.
But it won't work if you try to access the node page directly because drupal will throw an access denied page at you.
Comment #7
danielb commentedUnless we can take control of the access denied page somehow.
Either way the first step is to to detach the password form from the user page, make it better, and allow it to be embedded anywhere that it might be needed.
Comment #8
gorillaz.f commentedI found a module http://drupal.org/project/protected_node
can it be a reference case for this module ?
Comment #9
jonraabe commentedDumb Question.. but ..Where are the passwords and how does one edit which nodes produce them?
Comment #10
danielb commentedHeh apparently you can make your own 403 access denied page by setting
variable_set('site_403', 'path-to-page-here')That would make this very possible I think.
It wouldn't allow the node to come up in lists though, would need another workaround for that.
Comment #11
danielb commentedComment #12
danielb commentedAlready found a wierd bug in developing this with drupal sites nested within other drupal sites (which is how i develop) here's the fix http://drupal.org/node/30334
Comment #13
danielb commentedI have committed this to 7.x-4.x, see how it goes...
Comment #14
danielb commentedAny bugs with this, please start a new issue. I am redeveloping a lot of 7.x-4.x, so just be aware.
Comment #16
patrickroma commentedIs this (anonymous node access password to Enter on nodes) in the current Release?