2020-06-25 14:54:04 +02:00
|
|
|
package acl
|
|
|
|
|
|
|
|
type Action string
|
|
|
|
type Actions map[Action]bool
|
|
|
|
|
|
|
|
const (
|
2020-06-29 21:14:34 +02:00
|
|
|
ActionDefault Action = "*"
|
|
|
|
ActionSearch Action = "search"
|
|
|
|
ActionCreate Action = "create"
|
|
|
|
ActionRead Action = "read"
|
|
|
|
ActionUpdate Action = "update"
|
|
|
|
ActionUpdateSelf Action = "update-self"
|
|
|
|
ActionDelete Action = "delete"
|
|
|
|
ActionPrivate Action = "private"
|
|
|
|
ActionUpload Action = "upload"
|
|
|
|
ActionDownload Action = "download"
|
|
|
|
ActionShare Action = "share"
|
|
|
|
ActionLike Action = "like"
|
|
|
|
ActionComment Action = "comment"
|
|
|
|
ActionExport Action = "export"
|
|
|
|
ActionImport Action = "import"
|
2020-06-25 14:54:04 +02:00
|
|
|
)
|