stato intermedio
This commit is contained in:
@@ -31,7 +31,7 @@ func RequireAdmin() fiber.Handler {
|
||||
}
|
||||
}
|
||||
|
||||
func SetSessionUserID(c *fiber.Ctx, userID uint) error {
|
||||
func SetSessionUserID(c *fiber.Ctx, userID string) error {
|
||||
store, ok := c.Locals(contextStoreKey).(*session.Store)
|
||||
if !ok || store == nil {
|
||||
return errors.New("session store not available")
|
||||
|
||||
Reference in New Issue
Block a user