add relational table request

This commit is contained in:
Adrian Zürcher
2025-11-27 07:53:22 +01:00
parent 8156fea488
commit 21daaf1819
6 changed files with 22 additions and 21 deletions

View File

@@ -132,7 +132,7 @@ func (aH *AccessHandler) AuthorizeRole(suffix string, exeptions ...string) gin.H
// Fetch roles and associated permissions from the database or store
var roles []models.Role
err := aH.dbHandler.GetByKey(&roles, "", "role", role, false)
err := aH.dbHandler.GetByKey(&roles, "role", role, false)
if err != nil {
aH.logger.Error("AuthorizeRole", err)
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"message": http.StatusInternalServerError})