mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
edit button
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/dbmodels"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/helpers/functions"
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"golang.org/x/net/websocket"
|
||||
@@ -139,6 +140,10 @@ func (e *Engine) funcs() error {
|
||||
// TOC
|
||||
e.AddFunc("TOCFromHTML", functions.TOCFromHTML)
|
||||
|
||||
// User Functions
|
||||
e.AddFunc("IsAdminOrEditor", dbmodels.IsAdminOrEditor)
|
||||
e.AddFunc("IsAdmin", dbmodels.IsAdmin)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user