2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00
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

10 lines
193 B
JavaScript

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