Can't access Admin dashboard of the Firebase Backend Bo


Topic: Can't access Admin dashboard of the Firebase Backend Boilerpate

cparrish pro asked 5 years ago

Expected behavior When logging in with a user that has isAdmin: true expect to have the option of accessing an Admin Dashboard.

Actual behavior don't notice any difference between a user with IsAdmin: true or false.

Resources (screenshots, code snippets etc.)


Arkadiusz Idzikowski staff commented 5 years ago

Did you configure your app as explained in the installation guide?

https://mdbootstrap.com/docs/angular/getting-started/boilerplate-installation/#admin-panel


Carl Parrish commented 5 years ago

I simplified my firebase permissions to the following but still no admin-panel.

{ "rules": { ".read": false, ".write": false,

   "customers": {
      ".write": "auth != null",
      ".read": "auth != null "   
        },

  "projects": {
      ".write": "auth != null",
      ".read": "auth != null"
  },


  "users": {
      ".write": "auth != null",
      ".read": "auth != null"
  },

  "admins": {
      ".read": "root.child('users').child(auth.uid).child('isAdmin').val() === true",
      ".write": "root.child('users').child(auth.uid).child('isAdmin').val() === true"
  },

  "volunteers": {
      ".write": "auth != null",
      ".read": "auth != null"
    }

} }


Carl Parrish commented 5 years ago

It's working now.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: No