First, thank you for the well thought-out module!
I am unable to view questions/answers with this permission disabled: Node Module: Administer Nodes, and the following enabled:
- create faq
- delete own faq content
- edit own faq
- view faq page
- ask question
I wouldn't mind so much, except this admin nodes permission forces display of the revision, authoring and publishing options that I do not want cluttering the user interface for the faq_ask module.
Maybe I am missing something on the permissions? or is this a bug?
Comments
Comment #1
terra666 commentedComment #2
stella commentedVersion 6.x-1.2 of the FAQ module is no longer supported. However, if you need the 'administer nodes' permission to see the faq nodes, then it sounds like they are unpublished nodes. If these are unanswered questions, then this is for the FAQ Ask module and not the FAQ one. I also wouldn't recommend giving that permission to untrusted users.
Comment #3
terra666 commentedThanks Stella, which version should I use? 6.x-1.x-dev ? drupal.org/project/faq says it is actively maintained with the recommended version: 6.x-1.12
These are answered and published questions and display just fine when I enable 'administer nodes' permission. You are correct that this permission should not be given to just anyone, but it is the only permission that allows published, answered questions to be displayed in my setup for some reason.
Comment #4
terra666 commentedComment #5
stella commentedTook me a while to get back to this. Is this still an issue? If so, and if your questions are indeed answered and published, and the user has the 'access content' and 'view faq page' permissions, then it may be that you're using another access control module such as "content access", "node access" or "taxonomy access control (lite)". If so, check the configuration of those modules.
Comment #6
stella commentedNo update to my question, so closing this issue. Feel free to reopen if the problem is still occurring.
Comment #7
verta commentedI am seeing this on a 6.24 site with FAQ 6.x.1.13 on it and none of the access control modules mentioned. I am debugging it, as it does seem to be something in my permission grid, but cannot tell what yet. I have published and unpublished nodes of type FAQ, but none show up when I am on the index.php?q=faq page as an admin or as an unauthenticated user, and both have view FAQ permission.
Edit: I do not have the FAQ Ask module on this site.
Comment #8
verta commentedFound the answer.
If the categories are enabled but there is no taxonomy called FAQ, this behavior is seen.
This might be "as designed" but it might be considered a minor usability bug. If the box is checked but there is no FAQ taxonomy, certainly this is a RTFM moment, but it is also something the code might be able to detect and display an error message if the current user has administer FAQ permissions. Something like, 'Categories are enabled but no FAQ taxonomy found. Go to /admin/content/taxonomy and create a FAQ taxonomy or go to admin/settings/faq/categories and uncheck Use Categories' - just a suggestion.
Comment #9
stella commentedThis is essentially by design. If you've enabled the categorize question option but haven't categorized your FAQ nodes, nothing will appear.
Though just one correction - the taxonomy vocab doesn't have to be called "FAQ". As such an automated solution, detecting the lack of a vocab is trickier, but I'll take a look and see what I can come up with.
Comment #10
stella commentedI've added in a similar error message on form save and when viewing the faq page. The only scenario where no questions may appear is if there are no terms associated with the nodes themselves, but that's harder to determine and will have to leave it for now.
Error message committed to the 6.x-1.x and 7.x-1.x branches.