Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I chekced my site as anonymous user and wen't to sitemap link then got "You are not authorized to access this page." ...
Only when I went to permissions and gave anonymous users the permission to View published sitemap, this problem went away.
I believe with all my heart this permission should be default. I saw this problem quite by chance...
Comment | File | Size | Author |
---|---|---|---|
#9 | README.txt | 1.63 KB | Chris Matthews |
#4 | anonymous-users-can-view-site-map_2832804_1.patch | 364 bytes | azdonald |
Comments
Comment #2
mgiffordMakes sense to me!
Comment #3
azdonald CreditAttribution: azdonald commentedComment #4
azdonald CreditAttribution: azdonald commentedHere's a fix
Comment #5
mgifford@azdonald this applies well. I'm having trouble replicating the problem though. What are the steps to repliating this problem:
https://simplytest.me/project/site_map/8.x-1.x
vs
https://simplytest.me/project/site_map/8.x-1.x?patch[]=https://www.drupa...
I tried to see the /rss.xml file as an anonymous user to verify this problem.
Comment #6
azdonald CreditAttribution: azdonald commentedHi @mgifford, when installed on a site, you do not see the sitemap option unless you are logged in. This is the project i downloaded. https://www.drupal.org/project/sitemap
Comment #7
thallesswitching to the other project
Comment #8
Chris Matthews CreditAttribution: Chris Matthews commentedComment #9
Chris Matthews CreditAttribution: Chris Matthews commentedFor various reasons the Sitemap maintainers are probably not going to accept this patch. See #3 of the attached README.txt file, also copied below:
Installation:
------------
1. Place this module directory in your modules folder (this will usually be "modules/" for Drupal 8).
2. Go to Manage -> Extend to enable the module.
3. Check the Manage -> People -> Permissions page to enable use and administration of this module for different roles.
4. Make sure the menu item is enabled in Manage -> Structure -> Menus -> Tools. You may move it to another menu if you like.
5. Have a look at the different settings in Administer -> Configuration -> Sitemap
6. Visit http://example.com/sitemap.
Comment #10
akalata CreditAttribution: akalata commented#9 is correct. We should not change the established conventions of a project, particularly with regards to permissions, without a very strong reason.