Explorar el Código

[Doi] Show Doify only when admin

cgars hace 8 años
padre
commit
02781f10ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -33,7 +33,7 @@
 									</a>
 								</div>
 							{{end}}
-							{{if .CanDoified}}
+							{{if and .CanDoified $.IsRepositoryAdmin}}
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button"
 									 href="https://doi.gin.g-node.org/?repo={{.FullName}}&name={{.Owner.Name}}&token={{$.SessionID}}">