From 6ed01504ece8d5833bf5f5bb5cb1bc90dd65fde2 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 11 Sep 2018 17:39:32 +0100 Subject: [PATCH] Fix non-used declared properties bug --- web/auth.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/auth.go b/web/auth.go index 186cb515..023fcb12 100644 --- a/web/auth.go +++ b/web/auth.go @@ -339,7 +339,9 @@ func checkBearer(c *fibre.Context, info string, callback func() error) (err erro // Store the authenticated thing. - auth.Data = sql.NewThing(tbv, idv) + if tbk && idk { + auth.Data = sql.NewThing(tbv, idv) + } // Check that the scope specifies connect.