Closed (fixed)
Project:
RESTful Web Services
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2014 at 16:38 UTC
Updated:
10 Jun 2014 at 16:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
klausiPatch attached, I'm glad that we have the test cases to catch our special use case of property/field access.
Comment #2
muschpusch commentedThe patch isn't working for me. I also tried it in combination with #1720602. At least i don't need to give the 'bypass node access permission' anymore but administer content is still required.
[edit]I use entity API 1.4 and dev version of restws[/edit]
Comment #3
muschpusch commentedok after having a better look at this. The problem is in the part of the code which is checking for the $info['access callback'] if that one isn't set it checks for the setter permission, which is 'administer nodes' at least for the "sticky" and "status"properties of nodes. Should we just exclude those from the check?
Comment #5
klausiThis issue is only about fixing the temporary hack, if there is something left to do for nodes we should have a separate issue. "sticky" and "status" are access protected properties that require the administer nodes permission. Did you try to just leave them out in your POST/PUT request?