2019-01-18 22:04:40 +00:00
|
|
|
import Helper from '@ember/component/helper';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
|
|
|
|
export default Helper.extend({
|
|
|
|
permissions: service(),
|
2019-01-28 22:49:25 +00:00
|
|
|
compute([route], { routeParams, capability }) {
|
2019-01-18 22:04:40 +00:00
|
|
|
let permissions = this.permissions;
|
2019-01-28 22:49:25 +00:00
|
|
|
return permissions.hasNavPermission(route, routeParams, capability);
|
2019-01-18 22:04:40 +00:00
|
|
|
},
|
|
|
|
});
|