Use current_user_can() in single/comments.php template
Use current_user_can() in docs-header.php
Use WP caps in protect_doc_access()