Skip to content

Commit

Permalink
fix: Cannot access objects without user login (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Werkezeugs authored May 24, 2024
1 parent 0ee20f8 commit aa278df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parse/Platform/Queries/ParseQueryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class ParseQueryController : IParseQueryController

public ParseQueryController(IParseCommandRunner commandRunner, IParseDataDecoder decoder) => (CommandRunner, Decoder) = (commandRunner, decoder);

public Task<IEnumerable<IObjectState>> FindAsync<T>(ParseQuery<T> query, ParseUser user, CancellationToken cancellationToken = default) where T : ParseObject => FindAsync(query.ClassName, query.BuildParameters(), user?.SessionToken, cancellationToken).OnSuccess(t => (from item in t.Result["results"] as IList<object> select ParseObjectCoder.Instance.Decode(item as IDictionary<string, object>, Decoder, user.Services)));
public Task<IEnumerable<IObjectState>> FindAsync<T>(ParseQuery<T> query, ParseUser user, CancellationToken cancellationToken = default) where T : ParseObject => FindAsync(query.ClassName, query.BuildParameters(), user?.SessionToken, cancellationToken).OnSuccess(t => (from item in t.Result["results"] as IList<object> select ParseObjectCoder.Instance.Decode(item as IDictionary<string, object>, Decoder, user?.Services)));

public Task<int> CountAsync<T>(ParseQuery<T> query, ParseUser user, CancellationToken cancellationToken = default) where T : ParseObject
{
Expand Down

0 comments on commit aa278df

Please sign in to comment.