Sampath Liyanage
Sampath Liyanage

Reputation: 4896

Drupal - "Access denied" for anonymous user

I installed Drupal(7.31) on an xampp server (in localhost). Then created some new contents as pages with menu items. Now when I logout and try to access that page, "Access denied" message is shown.

admin view

anonimous view

Can someone tell me how to allow public access to a page?

Upvotes: 0

Views: 3249

Answers (2)

Pream Totaram
Pream Totaram

Reputation: 1

I want to add on. I had the same issue on Drupal 10, but I'm using Groups. It seems that the anonymous user view permissions on content is disabled by default. If you want anonymous users to see content created within Groups, you need to enable that in the group type configuration. The permission is located at /admin/group/types/manage/{group_type}/permissions

Under the content types assigned to the group type, you will see permissions that look like: Entity: View any content item entities

Upvotes: 0

Sampath Liyanage
Sampath Liyanage

Reputation: 4896

Got the answer. You have to visit "Administration » People". There you can change permissions and define user roles. If you give "View published content" permissions to "anonymous" user, the pages can be accessed by anonymous.

Upvotes: 0

Related Questions