photoprism/internal/acl/resources.go
Michael Mayer 67bf46dd9a Auth: Refactor ACL Roles and Resources #98
Renamed ResourcePeople to ResourceUsers. Work in progress.
Added a few "default" roles as a reminder for later.
2021-08-13 21:23:34 +02:00

27 lines
961 B
Go

package acl
type Resource string
const (
ResourceDefault Resource = "*"
ResourceConfig Resource = "config"
ResourceConfigOptions Resource = "config_options"
ResourceSettings Resource = "settings"
ResourceLogs Resource = "logs"
ResourceAccounts Resource = "accounts"
ResourceAlbums Resource = "albums"
ResourceCameras Resource = "cameras"
ResourceCategories Resource = "categories"
ResourceCountries Resource = "countries"
ResourceFiles Resource = "files"
ResourceFolders Resource = "folders"
ResourceLabels Resource = "labels"
ResourceLenses Resource = "lenses"
ResourceLinks Resource = "links"
ResourceGeo Resource = "geo"
ResourcePasswords Resource = "passwords"
ResourceUsers Resource = "users"
ResourcePhotos Resource = "photos"
ResourcePlaces Resource = "places"
ResourceFeedback Resource = "feedback"
)