Fossil SCM
Only show hyperlinks to the /mlink page to admin users.
Commit
dead084ee5d54c258498e4f00c8d4175774e00a5c1c9f82d42a23aa6232b1f9e
Parent
d3a46b2a45b92bb…
1 file changed
+3
-1
+3
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -764,11 +764,13 @@ | ||
| 764 | 764 | @ <td> |
| 765 | 765 | @ %z(href("%R/tree?ci=%!S",zUuid))files</a> |
| 766 | 766 | @ | %z(href("%R/fileage?name=%!S",zUuid))file ages</a> |
| 767 | 767 | @ | %z(href("%R/tree?nofiles&type=tree&ci=%!S",zUuid))folders</a> |
| 768 | 768 | @ | %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 | + } | |
| 770 | 772 | if( g.anon.Write ){ |
| 771 | 773 | @ | %z(href("%R/ci_edit?r=%!S",zUuid))edit</a> |
| 772 | 774 | } |
| 773 | 775 | @ </td> |
| 774 | 776 | @ </tr> |
| 775 | 777 |
| --- 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 |