In the access control there is a 'load raw node data' permission. No node data at all seems to be able to load unless the user has this permission. Not sure if this a bug or a feature?

It can be overridden in services/services/node_service/node_service.module on line 90 by changing:

return node_access('view', $node) && user_access('load raw node data');
to
return node_access('view', $node) && user_access('access services');

Should not having 'load raw node data' access degrade to giving some basic node data access? Or is it a better idea to create a custom node loading service that only returns desired node fields?

Comments

snelson’s picture

Title: overly strict permissions? » overly strict permissions -- "'load raw node data"?
Assigned: Unassigned » snelson
Category: bug » feature
Status: Active » Closed (won't fix)

This addition was made at the request of the Drupal security team. The thought is that special permissions need to exist if a user is to have access to an entire loaded node. If you have special needs, then I would suggest you create your own method. But what's wrong with just enabling 'load raw node data' for users who need it?