adjusted events view to only show the availability selector, when a user can do at least one task of the event

This commit is contained in:
z1glr
2025-02-07 11:28:14 +00:00
parent bc9deb5496
commit 353f51f2ae
8 changed files with 65 additions and 8 deletions

View File

@@ -20,6 +20,16 @@ func (a *Handler) getUsers() {
}
}
func (a *Handler) getUserTasks() {
if tasks, err := a.UserName.GetTasks(); err != nil {
a.Status = fiber.StatusInternalServerError
logger.Error().Msgf("getting possible user-tasks failed: %v", err)
} else {
a.Data = tasks
}
}
func (a *Handler) postUser() {
// check admin