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

@@ -387,6 +387,12 @@ var MUSENALM_MIME_TYPES = []string{
"image/svg+xml",
}
var USER_ROLES = []string{
"Admin",
"Editor",
"User",
}
var AGENT_RELATIONS = []string{
"Schöpfer",
"Autor:in",
@@ -507,4 +513,7 @@ const (
USERS_TABLE = "users"
USERS_SETTINGS_FIELD = "settings"
USERS_NAME_FIELD = "name"
USERS_ROLE_FIELD = "role"
USERS_AVATAR_FIELD = "avatar"
)