Explorar o código

[Doi] Show Doify only when admin

cgars %!s(int64=8) %!d(string=hai) anos
pai
achega
02781f10ab
Modificáronse 1 ficheiros con 1 adicións e 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}}">