Skip to content
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

Can not save nodes without reading them #398

Open
Suven opened this issue Jun 21, 2016 · 0 comments
Open

Can not save nodes without reading them #398

Suven opened this issue Jun 21, 2016 · 0 comments

Comments

@Suven
Copy link

Suven commented Jun 21, 2016

Hey!

I understand that this might not be firebase/emberfire-related but has more to do with the way ember works and what its assumptions about backends are.

I still would like to point out this behaviour.

I have a path where users are allowed to create data, but are NOT allowed to read, delete or update that data.

When saving entities in ember, that also causes a GET-Request to receive the state of the newly saved data. That totally makes sense because very often you will find the backend to be adding/updating some attributes. However, when read-access is not granted, this still should not throw an error.

The runtime-error that is thrown is:

firebase.js:186 Error: permission_denied at [...]: Client doesn't have permission to access the desired data.

Version info

e.g.
DEBUG: -------------------------------
DEBUG: Ember      : 2.5.0
DEBUG: Ember Data : 2.5.0
DEBUG: Firebase   : 3.0.0
DEBUG: EmberFire  : 2.0.0
DEBUG: -------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Core Development
Proposed / POC
Development

No branches or pull requests

1 participant