session + user structs, some light refactoring, user roles

This commit is contained in:
Simon Martens
2025-05-22 14:54:26 +02:00
parent 2316da4435
commit 3f57e7a18d
12 changed files with 287 additions and 58 deletions

View File

@@ -235,3 +235,11 @@ func (e *Entry) Comment() string {
func (e *Entry) SetComment(comment string) {
e.Set(COMMENT_FIELD, comment)
}
func (e *Entry) Editor() string {
return e.GetString(EDITOR_FIELD)
}
func (e *Entry) SetEditor(editor string) {
e.Set(EDITOR_FIELD, editor)
}