This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/components/add-button/component.js
2015-07-04 11:34:31 -07:00

9 lines
294 B
JavaScript

import Ember from 'ember';
import userCanAdd from '../../../utils/user-can-add';
export default Ember.Component.extend({
canAdd: function() {
let user_role = this.get('session.currentUser.role');
return userCanAdd(user_role);
}.property('session.currentUser.role').readOnly(),
});