File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ func NewFuncMap() []template.FuncMap {
165
165
"DisableGitHooks" : func () bool {
166
166
return setting .DisableGitHooks
167
167
},
168
+ "DisableImportLocal" : func () bool {
169
+ return ! setting .ImportLocalPaths
170
+ },
168
171
"TrN" : TrN ,
169
172
"Dict" : func (values ... interface {}) (map [string ]interface {}, error ) {
170
173
if len (values )% 2 != 0 {
Original file line number Diff line number Diff line change 92
92
<div class="inline field">
93
93
<div class="ui checkbox">
94
94
<label><strong>{{.i18n.Tr "admin.users.allow_import_local"}}</strong></label>
95
- <input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}}>
95
+ <input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}} {{if DisableImportLocal}}disabled{{end}} >
96
96
</div>
97
97
</div>
98
98
{{if not .DisableRegularOrgCreation}}
You can’t perform that action at this time.
0 commit comments