{"action":"created","issue":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/814","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/814/comments","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/814/events","html_url":"https://github.com/RESTful-Drupal/restful/issues/814","id":125875641,"number":814,"title":"Creating a node resource only works if the user has permission to 'edit any content'","user":{"login":"tripper54","id":353464,"avatar_url":"https://avatars.githubusercontent.com/u/353464?v=3","gravatar_id":"","url":"https://api.github.com/users/tripper54","html_url":"https://github.com/tripper54","followers_url":"https://api.github.com/users/tripper54/followers","following_url":"https://api.github.com/users/tripper54/following{/other_user}","gists_url":"https://api.github.com/users/tripper54/gists{/gist_id}","starred_url":"https://api.github.com/users/tripper54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tripper54/subscriptions","organizations_url":"https://api.github.com/users/tripper54/orgs","repos_url":"https://api.github.com/users/tripper54/repos","events_url":"https://api.github.com/users/tripper54/events{/privacy}","received_events_url":"https://api.github.com/users/tripper54/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-11T05:23:25Z","updated_at":"2016-01-18T06:50:36Z","closed_at":"2016-01-17T23:10:25Z","body":"Hi there,\r\n\r\nI have a node bundle where users can create, edit and delete their own content.\r\n\r\nIf I try to POST to the node resource, I get a 400 'Property label cannot be set' error.\r\n\r\nIf I change the user's permission to 'edit any content' for that bundle, the request returns 200 and the node is created OK.\r\n\r\nLooking at ResourceFieldEntity->access(), it seems $property_wrapper->access($op, $account) gets called, with 'edit' as the value for $op. The user fails that check.\r\n\r\nThe 'edit' op is hard coded in DataProviderEntity->setPropertyValues().\r\n\r\nAm I doing something wrong with permissions at my end, or is this a bug?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments/172442375","html_url":"https://github.com/RESTful-Drupal/restful/issues/814#issuecomment-172442375","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/814","id":172442375,"user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T06:50:35Z","updated_at":"2016-01-18T06:50:35Z","body":"@jeff-h thank you sir!"}}