Переглянути джерело

[Doi] Show Doify only when admin

cgars 8 роки тому
батько
коміт
a952049aef
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -38,7 +38,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}}">