Bläddra i källkod

[Doi] Show doify button only with public repos

cgars 7 år sedan
förälder
incheckning
a9cc89160f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -39,7 +39,7 @@
 									</a>
 								</div>
 							{{end}}
-							{{if and $.DOI $.IsRepositoryAdmin}}
+							{{if and (and $.DOI $.IsRepositoryAdmin) (not .IsPrivate)}}
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button"
 									 href="/{{.Owner.Name}}/{{.Name}}/doi">