Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Permission = map[string]string{
"Viewer": "[ ]",
}
Functions ¶
func HasDatasetPermission ¶
func HasDatasetPermission(role dataset.Role, permission DatasetPermission) bool
Types ¶
type DatasetPermission ¶
type DatasetPermission int64
const ( ViewGraphSchema DatasetPermission = iota ManageGraphSchema ManageModelTemplates ManageDatasetTemplates PublishDatasetTemplate CreateDeleteRecord CreateDeleteFiles EditRecords EditFiles ViewRecords ViewFiles ManageCollections ManageRecordRelationships ManageDatasetCollections AddPeople ChangeRoles ViewPeopleAndRoles TransferOwnership ReserveDoi ManageAnnotations ManageAnnotationLayers ViewAnnotations ManageDiscussionComments ViewDiscussionComments EditContributors EditDatasetName EditDatasetDescription EditDatasetAutomaticallyProcessingPackages DeleteDataset RequestRevise RequestCancelPublishRevise ShowSettingsPage ViewExternalPublications ManageExternalPublications ViewWebhooks ManageWebhooks TriggerCustomEvents )
type OrganizationPermission ¶
type OrganizationPermission int64
const (
CreateDatasetFromTemplate OrganizationPermission = iota
)
Click to show internal directories.
Click to hide internal directories.