Преглед на файлове

[Doi] Show Doify only when admin

cgars преди 8 години
родител
ревизия
02781f10ab
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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}}">