photoprism/internal/acl/permissions.go
2021-09-02 16:12:31 +02:00

28 lines
731 B
Go

package acl
var Permissions = ACL{
ResourceDefault: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceConfig: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionRead: true},
},
ResourceConfigOptions: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceSubjects: 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{
RoleDefault: Actions{ActionUpdateSelf: true},
},
}