mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-03 16:52:10 +02:00
ensure group header only shows teams link if actor is group admin or owner
This commit is contained in:
parent
696cbd033a
commit
f164de9d2a
@ -7,7 +7,7 @@
|
||||
<div class="ui small label">{{.RepoCount}}</div>
|
||||
{{end}}
|
||||
</a>
|
||||
{{if .IsGroupMember}}
|
||||
{{if or .IsGroupOwner .IsGroupAdmin}}
|
||||
<a class="{{if $.PageIsGroupTeams}}active {{end}}item" href="{{$.OrgGroupLink}}/teams">
|
||||
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
|
||||
{{if .NumTeams}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user