소스 검색

[Doi] Show doify button only with public repos

cgars 7 년 전
부모
커밋
a9cc89160f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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">