import Ember from 'ember';
import config from '../config/environment';


export default Ember.Route.extend({
  model() {
    if (this.get('session.isAuthenticated') || config.environment === 'development') {
      return this.store.findAll('abuseReport');
    }
    else {
      return [];
    }
  },
  actions: {
    error(error, transition) {
      transition = transition; // jshint, i love you but you're bringing me down
      if (error) {
        this.get("session").close();
        this.refresh();
      }
    }
  }
});

@@ -24,53 +24,8 @@
 r';%0A
-import config from '../config/environment';%0A%0A
 %0Aexp
@@ -120,44 +120,48 @@
  %7C%7C 
-config.environment === 'development'
+!this.features.isEnabled('use-firebase')
 ) %7B%0A

check feature flag directly instead of relying on environment