mirror of
https://github.com/gogs/gogs.git
synced 2025-12-24 01:00:00 +01:00
Refactoring: rename Signed -> Logged
This commit is contained in:
@@ -63,12 +63,12 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
|
||||
}
|
||||
|
||||
// Admin has super access.
|
||||
if ctx.IsSigned && ctx.User.IsAdmin {
|
||||
if ctx.IsLogged && ctx.User.IsAdmin {
|
||||
ctx.Org.IsOwner = true
|
||||
ctx.Org.IsMember = true
|
||||
ctx.Org.IsTeamMember = true
|
||||
ctx.Org.IsTeamAdmin = true
|
||||
} else if ctx.IsSigned {
|
||||
} else if ctx.IsLogged {
|
||||
ctx.Org.IsOwner = org.IsOwnedBy(ctx.User.ID)
|
||||
if ctx.Org.IsOwner {
|
||||
ctx.Org.IsMember = true
|
||||
|
||||
Reference in New Issue
Block a user