organization

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	Role            pgdb.DbPermission
	IntId           int64
	NodeId          string
	EnabledFeatures []pgdb.FeatureFlags
}

Claim combines the role of the user in the org, and the features in the organization.

func (Claim) HasRole added in v1.12.0

func (c Claim) HasRole(requiredOrgRole role.Role) bool

HasRole returns true if this claim contains permissions sufficient to satisfy the given requiredOrgRole

func (Claim) String

func (c Claim) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL