Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
path.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2008 at 18:17 UTC
Updated:
27 Jun 2008 at 16:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
buddaThe problem is that the path_nodeapi() call that inserts the path attribute ($op = 'load') will never get called for anon users UNLESS they have been granted either 'create url aliases' || 'administer url aliases' permissions!
Comment #2
damien tournoud commentedIt feels like we could load the path attribute no matter what permissions the user have. This "bug" is also present in 6.x, so reassigning.
Comment #3
robloachThis patch removes the check for the 'create url aliases' || 'administer url aliases' permissions.
Comment #4
damien tournoud commentedThe
user_access()check is still needed for every operation that is not"load". Please only remove it for that operation.Damien
Comment #5
webchickComment #6
robloachThis patch uses
user_accesson everything except'load'.Comment #7
robloachA bit more elegant.
Comment #8
Christefano-oldaccount commentedThis is my favorite issue of the month. And February just started!
Comment #9
moshe weitzman commentedComment #10
Christefano-oldaccount commentedWhoops, I meant to mark it RTBC. Thanks, Moshe.
Comment #11
damien tournoud commented+1, seems good to go.
Comment #12
gábor hojtsyUgh, committed.
Comment #13
damien tournoud commentedWe need a backport for 5.x.
Comment #14
robloachMoved to the DRUPAL-5 branch.
Comment #15
damien tournoud commentedNot much to say: applies cleanly, does what advertised :)
Comment #16
cburschkaThank you ever so much for this! I've grown extremely tired of manually loading the alias from the database when I needed it in a node object.
Comment #17
mzafer commentedSubscribing
Comment #18
drummCommitted to 5.x.
Comment #19
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #20
tommo commentedHi, this is a bug I was interested in back in January, I put a site live having to use drupal_get_path_alias('node/'.nid) to set the path for anon users. I'm just developing a new site and noticed that this issue should be fixed.
I'm using Drupal 5.7 and pathauto 5.x-2.2 and am doing a node_load()
The path is there for me as administrator but not there for anonymous users. I haven't set any permissions for anonymous users but reading through this issue I'm assuming I shouldn't have to.
Comment #21
robloachCorrection, this isn't fixed in Drupal 5.7. It will, however, be fixed in Drupal 5.8.... If you look at http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/path/path.module?r... , you'll see that the DRUPAL-5 branch has the fix, while the DRUPAL-5-7 tag (http://cvs.drupal.org/viewvc.py/drupal/drupal/modules/path/path.module?r...) doesn't.
Comment #22
webchickResetting title.
Comment #23
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.