Fix non-used declared properties bug

This commit is contained in:
Tobie Morgan Hitchcock 2018-09-11 17:39:32 +01:00
parent b5d089d4e0
commit 6ed01504ec

View file

@ -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.