Fossil SCM

Only show hyperlinks to the /mlink page to admin users.

drh 2017-10-05 11:41 trunk
Commit dead084ee5d54c258498e4f00c8d4175774e00a5c1c9f82d42a23aa6232b1f9e
1 file changed +3 -1
+3 -1
--- src/info.c
+++ src/info.c
@@ -764,11 +764,13 @@
764764
@ <td>
765765
@ %z(href("%R/tree?ci=%!S",zUuid))files</a>
766766
@ | %z(href("%R/fileage?name=%!S",zUuid))file ages</a>
767767
@ | %z(href("%R/tree?nofiles&type=tree&ci=%!S",zUuid))folders</a>
768768
@ | %z(href("%R/artifact/%!S",zUuid))manifest</a>
769
- @ | %z(href("%R/mlink?ci=%!S",zUuid))mlink table</a>
769
+ if( g.perm.Admin ){
770
+ @ | %z(href("%R/mlink?ci=%!S",zUuid))mlink table</a>
771
+ }
770772
if( g.anon.Write ){
771773
@ | %z(href("%R/ci_edit?r=%!S",zUuid))edit</a>
772774
}
773775
@ </td>
774776
@ </tr>
775777
--- src/info.c
+++ src/info.c
@@ -764,11 +764,13 @@
764 @ <td>
765 @ %z(href("%R/tree?ci=%!S",zUuid))files</a>
766 @ | %z(href("%R/fileage?name=%!S",zUuid))file ages</a>
767 @ | %z(href("%R/tree?nofiles&type=tree&ci=%!S",zUuid))folders</a>
768 @ | %z(href("%R/artifact/%!S",zUuid))manifest</a>
769 @ | %z(href("%R/mlink?ci=%!S",zUuid))mlink table</a>
 
 
770 if( g.anon.Write ){
771 @ | %z(href("%R/ci_edit?r=%!S",zUuid))edit</a>
772 }
773 @ </td>
774 @ </tr>
775
--- src/info.c
+++ src/info.c
@@ -764,11 +764,13 @@
764 @ <td>
765 @ %z(href("%R/tree?ci=%!S",zUuid))files</a>
766 @ | %z(href("%R/fileage?name=%!S",zUuid))file ages</a>
767 @ | %z(href("%R/tree?nofiles&type=tree&ci=%!S",zUuid))folders</a>
768 @ | %z(href("%R/artifact/%!S",zUuid))manifest</a>
769 if( g.perm.Admin ){
770 @ | %z(href("%R/mlink?ci=%!S",zUuid))mlink table</a>
771 }
772 if( g.anon.Write ){
773 @ | %z(href("%R/ci_edit?r=%!S",zUuid))edit</a>
774 }
775 @ </td>
776 @ </tr>
777

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button