diff options
Diffstat (limited to 'pkg/context/org.go')
-rw-r--r-- | pkg/context/org.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/context/org.go b/pkg/context/org.go index 49785674..be0b0572 100644 --- a/pkg/context/org.go +++ b/pkg/context/org.go @@ -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 |