feat(invite): handling of existing org user case when inviting, #2353

This commit is contained in:
Torkel Ödegaard
2015-07-21 12:18:11 +02:00
parent ab54971763
commit 6d6af09296
4 changed files with 33 additions and 14 deletions
+4 -3
View File
@@ -7,9 +7,10 @@ import (
// Typed errors
var (
ErrInvalidRoleType = errors.New("Invalid role type")
ErrLastOrgAdmin = errors.New("Cannot remove last organization admin")
ErrOrgUserNotFound = errors.New("Cannot find the organization user")
ErrInvalidRoleType = errors.New("Invalid role type")
ErrLastOrgAdmin = errors.New("Cannot remove last organization admin")
ErrOrgUserNotFound = errors.New("Cannot find the organization user")
ErrOrgUserAlreadyAdded = errors.New("User is already added to organization")
)
type RoleType string