diff --git a/gql.go b/gql.go index f2beb47..5326aea 100644 --- a/gql.go +++ b/gql.go @@ -212,7 +212,7 @@ func AuthHandler(ctx *Context, server *GQLThread) func(http.ResponseWriter, *htt }, new_user.ID(): LockInfo{ Node: &new_user, - Resources: []string{""}, + Resources: nil, }, }), func(context *StateContext) error { server.Users[key_id] = &new_user diff --git a/gql_test.go b/gql_test.go index a48398e..658dd9d 100644 --- a/gql_test.go +++ b/gql_test.go @@ -143,7 +143,7 @@ func TestGQLDBLoad(t * testing.T) { } func TestGQLAuth(t * testing.T) { - ctx := logTestContext(t, []string{"policy"}) + ctx := logTestContext(t, []string{"test", "gql", "policy"}) key, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) fatalErr(t, err)