photoprism/internal/acl/permissions.go

26 lines
658 B
Go
Raw Normal View History

package acl
var Permissions = ACL{
ResourceDefault: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceConfig: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionRead: true},
},
2020-12-19 01:54:48 +01:00
ResourceConfigOptions: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceAlbums: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionSearch: true, ActionRead: true},
},
ResourcePhotos: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionSearch: true, ActionRead: true, ActionDownload: true},
},
ResourceUsers: Roles{
2021-08-12 20:20:29 +02:00
RoleDefault: Actions{ActionUpdateSelf: true},
},
}