discourse/app/assets/javascripts/discourse/controllers/user-dropdown.js.es6
Robin Ward be9feeb918 Replace CurrentUserMixin with an injected currentUser
This is a lot simpler and removes the need for stubbing singletons
in unit tests.
2015-02-27 10:33:39 -05:00

11 lines
193 B
JavaScript

export default Ember.ArrayController.extend({
showAdminLinks: Em.computed.alias("currentUser.staff"),
actions: {
logout() {
Discourse.logout();
return false;
}
}
});