File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ func RepoAssignment() macaron.Handler {
395395 ctx .Data ["Owner" ] = ctx .Repo .Repository .Owner
396396 ctx .Data ["IsRepositoryOwner" ] = ctx .Repo .IsOwner ()
397397 ctx .Data ["IsRepositoryAdmin" ] = ctx .Repo .IsAdmin ()
398+ ctx .Data ["RepoOwnerIsOrganization" ] = repo .Owner .IsOrganization ()
398399 ctx .Data ["CanWriteCode" ] = ctx .Repo .CanWrite (models .UnitTypeCode )
399400 ctx .Data ["CanWriteIssues" ] = ctx .Repo .CanWrite (models .UnitTypeIssues )
400401 ctx .Data ["CanWritePulls" ] = ctx .Repo .CanWrite (models .UnitTypePullRequests )
Original file line number Diff line number Diff line change 5252 </form>
5353 </div>
5454
55+ {{if .RepoOwnerIsOrganization}}
5556 <h4 class="ui top attached header">
5657 Teams
5758 </h4>
108109 </div>
109110 {{end}}
110111 </div>
112+ {{end}}
111113 </div>
112114</div>
113115
You can’t perform that action at this time.
0 commit comments