Needs work
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2014 at 19:31 UTC
Updated:
24 Aug 2017 at 09:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dkingofpa commentedHere's a patch that adds "create" op support to entity_metadata_comment_access rolled from 7.x-1.x. Very simple patch, it should apply to 7.x-1.5 as well.
Comment #2
dkingofpa commentedComment #3
frankkessler commentedPatch verified on 7.x-1.6. It's impossible to post comments using the uuid_services and services modules without this patch unless you give the authenticated user administrator rights over comments.
Comment #4
mpotter commentedOK, this one really is a no-brainer. Sad that it was done 2 years ago and didn't get a good review.
I ran into this using the Paragraphs module to add paragraph entities to comments. It checks the parent comment permissions, so passes "create" to entity_access when adding paragraphs to a new comment.
This really should get committed.
Comment #5
edaa commented+1 for this, currently comments can't be created through RESTful API.
Comment #6
edaa commentedTake into account attempting to update a newly created comment.
Comment #7
edaa commentedComment #8
garphyReally need for any serious headless Drupal operating mode (RESTful or Services API)
+1 for committing this.
Comment #9
Moxide commentedJust to bump this one...
Mandatory patch to make restful comments work !
Why is it still not commited ?
Comment #10
fagoI don't think it's the job of the entity API to correct the callers $op.
Hm, does that relate to skip comment approval? I guess we have to make sure this permission is covered also somehow, e.g. via property access?
Comment #11
d34dman commentedPatch in #1 solves the issue.
Comment #12
efpapado commentedI share the concerns of #10 (first part), but I agree that #6 fixes the problem, even if it is done wrong(ish)ly.
The comment approval permission (#10 second part) doesn't seem to be skipped.