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/species/show/controller.js
2015-07-08 14:44:56 -08:00

14 lines
320 B
JavaScript

import Ember from 'ember';
export default Ember.Controller.extend({
userCanEdit: function() {
let meta = this.store.metadataFor('species');
let id = this.get('model.id');
if (meta.canEdit.indexOf( +id ) === -1) {
return false;
}
return true;
}.property('model.isLoaded').readOnly(),
});