photoprism/internal/acl/permissions.go
2021-10-04 21:50:44 +02:00

35 lines
1.1 KiB
Go

package acl
var Permissions = ACL{
ResourceDefault: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceConfig: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionRead: true},
RoleMember: Actions{ActionRead: true},
},
ResourceConfigOptions: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleMember: Actions{ActionRead: true},
},
ResourceSubjects: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleMember: Actions{ActionRead: true},
},
ResourceAlbums: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionSearch: true, ActionRead: true},
RoleMember: Actions{ActionSearch: true, ActionRead: true},
},
ResourcePhotos: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleGuest: Actions{ActionSearch: true, ActionRead: true, ActionDownload: true},
RoleMember: Actions{ActionSearch: true, ActionRead: true, ActionDownload: true},
},
ResourceUsers: Roles{
RoleDefault: Actions{ActionUpdateSelf: true},
RoleAdmin: Actions{ActionUpdateSelf: true},
RoleMember: Actions{ActionUpdateSelf: true},
},
}