{"id":9385979,"date":"2017-08-06T20:39:29","date_gmt":"2017-08-06T20:39:29","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/access-rights-of-comments-to-a-cpt\/"},"modified":"2017-08-07T09:48:45","modified_gmt":"2017-08-07T09:48:45","slug":"access-rights-of-comments-to-a-cpt","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/access-rights-of-comments-to-a-cpt\/","title":{"rendered":"Access rights of comments to a CPT"},"content":{"rendered":"<p><em>[ Moderator note: <a href=\"https:\/\/wordpress.org\/support\/topic\/wheres-my-topic-gone?replies=1&amp;view=all\">moved to Fixing WordPress<\/a>. ]<\/em><\/p>\n<p>Hello. <\/p>\n<p>1) I&#8217;m using CPT, and managing the access rights to those thru user caps: great. <\/p>\n<p>2) I&#8217;m using comments on those objects, with a slightly devious purpose: logging changes and activity related to this custom post. That is also great !<\/p>\n<p>3) slight security problem: a number of users can see those comments, even if they cannot see the commented custom type post. <\/p>\n<p>Is there is a way to associate the same capabilities requirements to the comment than the commented object? Or anyway to solve issue 3) ?<br \/>\nThanks<br \/>\nManuel<\/p>\n","protected":false},"template":"","class_list":["post-9385979","topic","type-topic","status-publish","hentry","topic-tag-comments","topic-tag-cpt","topic-tag-user-capabilities"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9385979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9385979\/revisions"}],"predecessor-version":[{"id":9387020,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9385979\/revisions\/9387020"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9385979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}