Skip to content
Browse files

Fixing reference to session.Advanced.Conventions

  • Loading branch information...
1 parent 0ce6b02 commit 3eb66697a62f73a35ee1b07605498d489b973486 @ayende ayende committed Nov 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Bundles/Raven.Client.Authorization/AuthorizationClientExtensions.cs
View
4 Bundles/Raven.Client.Authorization/AuthorizationClientExtensions.cs
@@ -53,7 +53,7 @@ public static DocumentAuthorization GetAuthorizationFor(this IDocumentSession se
return null;
return new JsonSerializer
{
- ContractResolver = session.Advanced.Conventions.JsonContractResolver,
+ ContractResolver = session.Advanced.DocumentStore.Conventions.JsonContractResolver,
}.Deserialize<DocumentAuthorization>(new RavenJTokenReader(docAuthAsJson));
}
@@ -62,7 +62,7 @@ public static void SetAuthorizationFor(this IDocumentSession session, object ent
var metadata = session.Advanced.GetMetadataFor(entity);
metadata[RavenDocumentAuthorization] = RavenJObject.FromObject(documentAuthorization, new JsonSerializer
{
- ContractResolver = session.Advanced.Conventions.JsonContractResolver,
+ ContractResolver = session.Advanced.DocumentStore.Conventions.JsonContractResolver,
});
}

0 comments on commit 3eb6669

Please sign in to comment.
Something went wrong with that request. Please try again.