mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Refactored single almanach view
This commit is contained in:
@@ -2,6 +2,14 @@ package dbmodels
|
||||
|
||||
import "github.com/pocketbase/pocketbase/core"
|
||||
|
||||
func Ids[T core.RecordProxy](records []T) []any {
|
||||
ids := []any{}
|
||||
for _, r := range records {
|
||||
ids = append(ids, r.ProxyRecord().Id)
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
func SetBasicPublicRules(collection *core.Collection) {
|
||||
collection.ViewRule = PUBLIC_VIEW_RULE
|
||||
collection.ListRule = PUBLIC_LIST_RULE
|
||||
|
||||
Reference in New Issue
Block a user