Fossil

Check-in [7ff6d5b0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed the Markdown and Wiki help page links from the Help section of the sitemap when the accessing user has no ability to create content in those formats: no wiki, ticket, or forum creation capability, no checkin rights, and no Admin rights.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:7ff6d5b0e9952aa5de7be445ee56251273c0c31efaedeb5f717443ede2176d01
User & Date: wyoung 2019-03-17 03:47:22
Context
2019-03-17
03:50
Only showing the file name extension to MIME type map page on the sitemap if the accessing user has an ability to check in named files. I can't see how anyone else would care what that table contains. check-in: 71d66284 user: wyoung tags: trunk
03:47
Removed the Markdown and Wiki help page links from the Help section of the sitemap when the accessing user has no ability to create content in those formats: no wiki, ticket, or forum creation capability, no checkin rights, and no Admin rights. check-in: 7ff6d5b0 user: wyoung tags: trunk
01:42
Add the "fossil git export" command to the 2.9 change log. check-in: 17b517f5 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sitemap.c.

   191    191       @   <li>%z(href("%R/bloblist"))List of Artifacts</a></li>
   192    192       @   <li>%z(href("%R/timewarps"))List of "Timewarp" Check-ins</a></li>
   193    193       @   </ul>
   194    194       @ </li>
   195    195     }
   196    196     @ <li>Help
   197    197     @   <ul>
   198         -  @   <li>%z(href("%R/wiki_rules"))Wiki Formatting Rules</a></li>
   199         -  @   <li>%z(href("%R/md_rules"))Markdown Formatting Rules</a></li>
          198  +  if( g.perm.Admin || g.perm.Write ||
          199  +      g.perm.WrForum || g.perm.WrTForum ||
          200  +      g.perm.NewWiki || g.perm.ApndWiki || g.perm.WrWiki || g.perm.ModWiki ||
          201  +      g.perm.NewTkt  || g.perm.ApndTkt  || g.perm.WrTkt  || g.perm.ModTkt ){
          202  +    @   <li>%z(href("%R/wiki_rules"))Wiki Formatting Rules</a></li>
          203  +    @   <li>%z(href("%R/md_rules"))Markdown Formatting Rules</a></li>
          204  +  }
   200    205     @   <li>%z(href("%R/help"))List of All Commands and Web Pages</a></li>
   201    206     @   <li>%z(href("%R/test-all-help"))All "help" text on a single page</a></li>
   202    207     @   <li>%z(href("%R/mimetype_list"))Filename suffix to mimetype map</a></li>
   203    208     @   </ul></li>
   204    209     if( g.perm.Admin ){
   205    210       @ <li>%z(href("%R/setup"))Administration Pages</a>
   206    211       @   <ul>