permissions

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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