mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Allow to set organization visibility (public, internal, private) (#1763)
This commit is contained in:
committed by
Lauris BH
parent
ae3a913122
commit
64ce159a6e
@@ -386,6 +386,12 @@ func showOrgProfile(ctx *context.Context) {
|
||||
}
|
||||
|
||||
org := ctx.Org.Organization
|
||||
|
||||
if !models.HasOrgVisible(org, ctx.User) {
|
||||
ctx.NotFound("HasOrgVisible", nil)
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Data["Title"] = org.DisplayName()
|
||||
|
||||
var orderBy models.SearchOrderBy
|
||||
|
Reference in New Issue
Block a user