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

Authorization(1): UsersList not loading #22

Open
joshuaiz opened this issue Jan 30, 2019 · 3 comments
Open

Authorization(1): UsersList not loading #22

joshuaiz opened this issue Jan 30, 2019 · 3 comments

Comments

@joshuaiz
Copy link

Hi Robin,

Thanks for this and all of your tutorials and articles.

I've completed the Authorization(1) section and I'm getting PERMISSION DENIED errors now when I try to sign a user up.

Here is the warning/error in the console:

[2019-01-30T03:08:20.837Z] @firebase/database: FIREBASE WARNING: set at /users/3TmKy1wayITeJ1QSkHiAVrHj4BC3 failed: permission_denied

Because of this, there are no users in the users array so cannot view them on the Admin page. Any idea why I'm getting denied and how to fix?

Thanks!

@bmoyroud
Copy link
Contributor

@joshuaiz this is likely to do with the Firebase security rules. Go to Database then Rules (2nd after Data) and change your rules to the following

{ "rules": { ".read": true, ".write": true } }

It should work then!

@joshuaiz
Copy link
Author

@bmoyroud that was it! Thanks!

@rwieruch
Copy link
Member

rwieruch commented Feb 1, 2019

Need to fix it asap! Thanks for reporting 👍 and sorry for you having to run into this!

EDIT: Should be mentioned in the book now. But I keep the issue open for people running into it.

@rwieruch rwieruch reopened this Feb 1, 2019
@rwieruch rwieruch added the bug label Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants