-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support query
variable
#142
Comments
I opened an issue with Firebase to check if it's a bug before accommodating for the new inferring requirement. |
The firebase issue is now fixed, and |
With #144, you can set targaryen.setFirebaseData(null);
targaryen.setFirebaseRules({rules: {
'.read': 'query.orderByChild == "owner" && query.equalTo == auth.uid'
}});
expect({uid: 'bob'}).can.readWith({query: {
orderByChild: 'owner',
equalTo: 'bob'
}}).path('/'); With targaryen.setFirebaseData(null);
targaryen.setFirebaseRules({rules: {
'.read': 'query.orderByChild == "owner" && query.equalTo == auth.uid'
}});
expect({uid: 'bob'}).canRead('/', {query: {
orderByChild: 'owner',
equalTo: 'bob'
}}); I will release in 3.1.0-beta.1 before committing to those assertion methods. |
You can try the new matcher/options with |
Published with |
The rule parser and evaluator needs to allow it and APIs needs a way to set it.
It's not yet part of the security variables reference but there's a blog post and a guide entry:
The text was updated successfully, but these errors were encountered: