verbb / comments

A Craft CMS plugin for managing comments directly within the CMS.
Other
137 stars 35 forks source link

GraphQL: expose author id on CommentInterface #260

Closed bzin closed 2 years ago

bzin commented 2 years ago

What are you trying to do?

I am trying to mark an author of an entry to on a comment. If the comment would has a userId property I could mark this comment has author since he was the one that created the Element of the entry I am reading.

What's your proposed solution?

Make a userId available in the CommentInterface so if a Craft user created an entry and added a comment we could validate this has the comment author.

Additional context

No response

engram-design commented 2 years ago

We already have userId exposed in the CommentInterface, so it might be a permissions thing?

bzin commented 2 years ago

This was indeed a permissions thing. Thanks @engram-design