File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 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 {
165165 "DisableGitHooks" : func () bool {
166166 return setting .DisableGitHooks
167167 },
168+ "DisableImportLocal" : func () bool {
169+ return ! setting .ImportLocalPaths
170+ },
168171 "TrN" : TrN ,
169172 "Dict" : func (values ... interface {}) (map [string ]interface {}, error ) {
170173 if len (values )% 2 != 0 {
Original file line number Diff line number Diff line change 9292 <div class="inline field">
9393 <div class="ui checkbox">
9494 <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}} >
9696 </div>
9797 </div>
9898 {{if not .DisableRegularOrgCreation}}
You can’t perform that action at this time.
0 commit comments