photoprism/internal/acl/permissions.go
2021-10-21 14:24:10 +02:00

59 lines
1.7 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, ActionSearch: 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},
},
ResourceReview: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourcePrivate: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceArchive: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceLibrary: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceSettings: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
ResourceLabels: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleMember: Actions{ActionSearch: true, ActionRead: true},
},
ResourceFiles: Roles{
RoleAdmin: Actions{ActionDefault: true},
RoleMember: Actions{ActionSearch: true, ActionRead: true},
},
}