Skip to content

Commit

Permalink
Merge pull request #197 from dynamiccast/fix-config-permission-denied
Browse files Browse the repository at this point in the history
Fix Permission denied on Configuration tab for Administrator
  • Loading branch information
Gentux authored Sep 7, 2016
2 parents 9d35711 + 4bcd119 commit 7d2046e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/app/protected/configs/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default Ember.Route.extend({
});
},
beforeModel() {
if (!this.get('session.user.isAdmin')) {
if (!this.get('session').get('user').get('isAdmin')) {
this.toast.error('Permission denied');
this.transitionTo('protected.dashboard');
}
Expand Down

0 comments on commit 7d2046e

Please # to comment.