dimanche 27 janvier 2019

Emberfire issue with firebase with underscore in node

I am trying to retrieve data from an existing firebase database using Emberfire in an ember.js app. I can authenticate firebase and sign in. The problem being when trying to access the node daily_mail the error I get from Emberfire is permission_denied at /dailyMail: Client doesn't have permission to access the desired data. It removes the underscore and camelcase's my node. Is there any workaround. The database has appropriate rules in place, so that is not the problem. It is only requiring the user to be authenticated at each node for now. dailyMail simply doesn't exist it's daily_mail.

Model

import Client from './client';

export default Client.extend({
  model: function() {
    return this.store.findAll('daily_mail');
  }
});




Aucun commentaire:

Enregistrer un commentaire