1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Disable 'May Import Local Repository' when is disabled by setting (Issue #4779) (#4780)

This commit is contained in:
EnricoFerro
2018-08-24 07:00:22 +02:00
committed by techknowlogick
parent 194a11eb11
commit 0a24f5cac8
2 changed files with 4 additions and 1 deletions

View File

@@ -92,7 +92,7 @@
<div class="inline field">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.users.allow_import_local"}}</strong></label>
<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}}>
<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}} {{if DisableImportLocal}}disabled{{end}}>
</div>
</div>
{{if not .DisableRegularOrgCreation}}