Versions in this module Expand all Collapse all v0 v0.22.0 Oct 26, 2026 v0.21.0 Oct 26, 2026 Changes in this version + const RoleAdmin + const RoleCollaborator + const RoleMember + const RoleOwner + func AppRole(ctx context.Context, c *ent.Client, orgID, principalID uuid.UUID, ...) (bool, error) + func AppRoleHolders() []string + func CanHoldAppRoles(role string) bool + func HoldingAdmins() []predicate.Human + func HoldingManagerRelationships() []predicate.ManagerRelationship + func HoldingMemberships(roles ...string) []predicate.PrincipalMembership + func Manager(ctx context.Context, c *ent.Client, managedID, managerID uuid.UUID, ...) (bool, error) + func Membership(ctx context.Context, c *ent.Client, orgID, principalID uuid.UUID, ...) (bool, error) + func OrgRoles() []string + func PlatformAdmin(ctx context.Context, c *ent.Client, principalID uuid.UUID) (bool, error) + func ResourceGrant(ctx context.Context, c *ent.Client, orgID, principalID uuid.UUID, ...) (bool, error)