Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatasetClaim ¶
func GetDatasetClaim(db *sql.DB, user *dbTable.User, datasetNodeId string, organizationId int64) (*dataset.Claim, error)
GetDatasetClaim returns the highest role that the user has for a given dataset. This method checks the roles of the dataset, the teams, and the specific user roles.
func GetOrganizationClaim ¶
func GetOrganizationClaim(db *sql.DB, userId int64, organizationId int64) (*organization.Claim, error)
GetOrganizationClaim returns an organization claim for a specific user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.