0

I'm using nodeaccess module to secure some published contents from being seen by normal users or anonymous.

I have a view allowed only to admin and moderator roles to access, but when nodeaccess module is enabled moderator role couldn't see the view contents. the moderator have permissions to view and edit the content of this content type.

I tried to change the view permission access to "view publish content", it doesn't work until I disable nodeaccess.

So I want understand I what is them problem, and how can allow moderator user to view the view contents? Or at least if nodeaccess is not recommended in my usecase what I should do instead?

10
  • This sounds like it might be a module bug, you should check out the node access issue queue on its projects page on drupal.org. There are 41 open bugs there at the moment.
    – Collins
    Oct 31, 2015 at 13:48
  • @Collins I'll do, but I seek for anlternative way to secure content, I don't have a lot of time.
    – learner123
    Oct 31, 2015 at 22:50
  • 1
    have you tried granting your moderator role access to the published content that the view displays? So if your content type is "stuff" then you need to go to admin/config/people/nodeaccess and under the "stuff" category specifically allow moderator to view, edit and delete stuff. Then rebuild permissions admin/reports/status/rebuild and refresh all caches Nov 1, 2015 at 1:40
  • @longboardnode yes I did
    – learner123
    Nov 2, 2015 at 0:01
  • Are you going to be granting access to individual nodes? If not, you don't really need nodeaccess and you can just grant permissions from the core permissions page? Nov 2, 2015 at 17:04

1 Answer 1

0

I found this module node_view_permissions, it did what I want in my use case, so I removed nodeaccess.

Node view permissions module enables permissions "View own content" and "View any content" for each content type on permissions page as it was on Drupal 6. It's as simple as that.

It's implemented in a non-conflict way, so you can use it with any other permissions related module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.