having fun with code

Drupal: users can’t access content! (node_access gone wild)

If you are having trouble with users accessing content, check out the node_access table and make sure all permissions are set properly. Unless you are using modules like Organic Groups which set the node access permissions by user, you will only need one row on that table, with user id 0:

Restore permissions:

  1. TRUNCATE TABLE node_access;
  2. INSERT INTO node_access VALUES (0, 0, 'all', 1, 0, 0);

Related Posts:

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info