Refactoring: rename Signed -> Logged

This commit is contained in:
Unknwon
2017-04-06 23:48:49 -04:00
parent 8d0417497b
commit ac43eab51f
37 changed files with 106 additions and 104 deletions

View File

@@ -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