diff --git a/app/abilities/article-comment.js b/app/abilities/article-comment.js index 3fbd1882f..38a7c4ade 100644 --- a/app/abilities/article-comment.js +++ b/app/abilities/article-comment.js @@ -1,6 +1,10 @@ import { Ability } from 'ember-can'; export default class ArticleComment extends Ability { + get canShow() { + return this.session.hasPermission('article-comment.read'); + } + get canCreate() { return this.session.hasPermission('article-comment.create'); } diff --git a/app/abilities/debit/transaction.js b/app/abilities/debit/transaction.js index 1798fa3e2..35fbfd359 100644 --- a/app/abilities/debit/transaction.js +++ b/app/abilities/debit/transaction.js @@ -1,6 +1,10 @@ import { Ability } from 'ember-can'; export default class Transaction extends Ability { + get canShow() { + return this.session.hasPermission('debit/transaction.read'); + } + get canEdit() { return this.session.hasPermission('debit/transaction.update'); } diff --git a/app/abilities/photo.js b/app/abilities/photo.js index 047f0b269..141478220 100644 --- a/app/abilities/photo.js +++ b/app/abilities/photo.js @@ -8,7 +8,7 @@ export default class Photo extends Ability { get canShowPhotoComments() { return ( this.session.hasPermission('photo-comment.read') || - this.model.photoAlbum.publiclyVisible + this.model.photoAlbum.get('publiclyVisible') ); } } diff --git a/app/adapters/application.js b/app/adapters/application.js index ae37a35a0..d605adac7 100644 --- a/app/adapters/application.js +++ b/app/adapters/application.js @@ -1,7 +1,7 @@ import JSONAPIAdapter from '@ember-data/adapter/json-api'; import { underscore } from '@ember/string'; import { inject as service } from '@ember/service'; -import ENV from '../config/environment'; +import ENV from 'amber-ui/config/environment'; import { pluralize } from 'ember-inflector'; diff --git a/app/authenticators/oauth2.js b/app/authenticators/oauth2.js index b4c4cdca6..949a736fc 100644 --- a/app/authenticators/oauth2.js +++ b/app/authenticators/oauth2.js @@ -1,5 +1,5 @@ import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant'; -import ENV from '../config/environment'; +import ENV from 'amber-ui/config/environment'; export default class OAuth2Authenticator extends OAuth2PasswordGrant { serverTokenEndpoint = `${ENV.api.hostname}/oauth/token`; diff --git a/app/components/bread-crumbs.hbs b/app/components/bread-crumbs.hbs deleted file mode 100644 index 3a22524c6..000000000 --- a/app/components/bread-crumbs.hbs +++ /dev/null @@ -1,11 +0,0 @@ -
\ No newline at end of file diff --git a/app/components/bread-crumbs.js b/app/components/bread-crumbs.js deleted file mode 100644 index 057907951..000000000 --- a/app/components/bread-crumbs.js +++ /dev/null @@ -1,3 +0,0 @@ -import BreadCrumbs from 'ember-crumbly/components/bread-crumbs'; - -export default class CustomBreadCrumbs extends BreadCrumbs {} diff --git a/app/components/breadcrumbs.hbs b/app/components/breadcrumbs.hbs new file mode 100644 index 000000000..83175c79a --- /dev/null +++ b/app/components/breadcrumbs.hbs @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/app/components/cards/activity-card.hbs b/app/components/cards/activity-card.hbs index 4c6887d60..2af52e4ed 100644 --- a/app/components/cards/activity-card.hbs +++ b/app/components/cards/activity-card.hbs @@ -41,7 +41,7 @@