hide issues from org private repos w/o team assignment (#4034)

This commit is contained in:
David Schneiderbauer authored and techknowlogick committed 2018-06-21 12:00:13 -04:00
1 parent 46d19c4676
commit 0b3ea42847
24 files changed
+545 -72

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@
{{range $t, $unit := $.Units}}
<div class="field">
<div class="ui toggle checkbox">
<input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if $.Team.UnitEnabled $unit.Type}} checked{{end}}>
<input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if or (eq $.Team.ID 0) ($.Team.UnitEnabled $unit.Type)}} checked{{end}}>
<label>{{$.i18n.Tr $unit.NameKey}}</label>
<span class="help">{{$.i18n.Tr $unit.DescKey}}</span>
</div>