I have defined a member_only_content
capability and associated it to specific roles on my sight (this can be seen from the plugin interface I used here.
Now I’m trying to leverage this in Cornerstone to make a specific section visible only if the current user has this capability but I don’t see a way to do this. I’ve tried {{dc:user:meta key="member_only_content"}}
but it returns no value. I’ve also tried {{ user.meta({"key":"wp_capabilities"}) }}
but it seems to return an array containing the User Role.
Based on some details I found here I also tried {{ user.can('member_only_content') }}
but it also doesn’t appear to provide any value
Really hoping there is a way to accomplish this but just need some guidance. Thanks!