I have a user with custom role. This role has permission custom-type: create new content.

When I try to access node/add/custom-type I am getting 403. Site is quite complex. What is the quickest way to find which permissions I need to add to this user role to access that page?

  • That will surely depend on what custom/contrib access modules you have installed? – Clive Nov 21 '13 at 12:41
  • Devel Node Access (DNA) wouldn't work for that, would it? – Mołot Nov 21 '13 at 12:51
  • @Clive I'm not so sure. "What's wrong" would depend on all that, but "how to find what's wrong" shouldn't, at least if all modules use permission hooks without any dirty hacks. Or am I wrong? It works that way (or seems to me it works) for viewing nodes, Devel Node Access is pretty reliable no matter what contrib modules are in play. – Mołot Nov 21 '13 at 12:53
  • @Mołot thanks for this module. Now I know that other dev hardcoded access to other user role. – Codium Nov 21 '13 at 13:17
  • @drupality so DNA works properly on edit too? If so, I will post that as an answer :) – Mołot Nov 21 '13 at 13:20

Devel Node Access (DNA) provides detailed information on permissions that take effect.

View the node access entries for the node(s) that are shown on a page. Essential for developers of node access modules and useful for site admins in debugging problems with those modules.

Unless some modules abuse access system with dirty hacks, it should pretty reliably identify which module refused access to given user.

  • I didn't check it, no need for this. However, there is no other solution probably. – Codium Nov 21 '13 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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