Closed (fixed)
Project:
User Relationships
Version:
7.x-1.x-dev
Component:
Node Access
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Nov 2009 at 14:53 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
buzzman commentedany updates for this? ... bump
Related problem here too. I believe this could belong here, but do advise if it needs to be a separate issue:
Only "view" node_access that is granted by the user is respected by the system. if "update" and/or "delete" is also selected, they don't work - as in I still get "access denied" on the node edit page. I'm using version RC2. has this issue been encountered by anyone and if so, plz reply with which version of UR is this resolved?
I need to get this resolved at the earliest with someone's help.
Thanks for reading.
Comment #2
buzzman commentedI corrected my problem of the "system not respecting update/delete node_access set via UR". There was an issue with the permissions with different user roles on the site. Fixed. But I did hit the original bug-report above. So yes I can confirm that after a user updates node to which s/he has been granted permission, on redirect from form submit action, the edit link disappears. I'm using UR vs. RC2.
Plz help sort this issue as it's keeping me from using the UR node_access module (within UR).
Thanks.
Comment #3
alex.k commentedCommitted a fix http://drupal.org/cvs?commit=309334. Thanks for the report. Please test once the -dev release is updated and post your results.
Comment #4
buzzman commentedis it possible to have a patch for the RC2 version?
I have done some experimental code changes which will b lost if I switch to dev version.
thanks in any case Alex. much appreciated.
cheers
Comment #5
alex.k commentedhttp://drupalcode.org/viewvc/drupal/contributions/modules/user_relations...
Comment #7
Rob_Feature commentedReopening this issue. I'm seeing this behavior in the July 11 6.x-1.0-dev version (or something similar). When a node is saved with ur_node_access data, the permissions are added to the node. However, if that node is edited by someone not the node author (I'm editing with user 1), there is no longer a "post to social network" box anywhere on the node edit screen. So, if the node is then saved (when no box is present) then the permissions are removed.
Somehow, ur_node_access info isn't loading into the node when someone other than the author is editing.
Comment #8
mrf commentedComment #9
mrf commentedComment #10
mrf commentedConfirmed this one. Got the following notice on submit with a user that didn't have anything but edit permission for the node type:
And then this notice when the original user went back in to try and edit:
Comment #11
mrf commentedDiff of the previous commit mentioned on this thread:
Comment #12
mrf commentedClosed #897040: How do you save UR-node_access using node_save() as a duplicate of this issue, but need to make sure to test node_save as well as a different user to make sure both cases are solved.
Comment #13
jamesdevware commentedin the version for drupal 7 dev
I appear to have fixed it by editing the user_relationship_node_access.module
edited function user_relationship_node_access_update_node($node)
Sorry but i don't know how to make patch or etc....
hope that this helps anyone experiencing this issue
Comment #14
auraell commentedThanks for the info! It fixed my issues.
Comment #15
mrf commentedPatch with the fix provided by Xenza above.
Comment #17
berdirLooks like the test fails are unrelated.
Comment #18
berdirThanks for the patch, commited to 7.x-1.x.