Is there a way to have a content type that is only viewable to admins AND the person who created it, including comments? I feel like I know the answer to this but its escaping me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the content type is defined by your own module, you can use
hook_accessto do this.If the content type is defined by CCK or another module, things are a bit trickier. You can install a patch that adds an
accessop tohook_nodeapi, but unfortunately that’s a hack to the core Drupal code, with all the potential upgrade pitfalls that ensue.