* chore: 🤖 Update editor config settings * chore: 🤖 Add back ember-template-lint-plugin-prettier * style: 💄 Format admin * style: 💄 Format desktop * style: 💄 Format rose * style: 💄 Format core * style: 💄 Format api
16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
import ModelAbility from './model';
|
|
/**
|
|
* Provides abilities for credential.
|
|
*/
|
|
export default class CredentialAbility extends ModelAbility {
|
|
// =permissions
|
|
|
|
/**
|
|
* Only "known" credential types may be read.
|
|
* @type {boolean}
|
|
*/
|
|
get canRead() {
|
|
return !this.model.isUnknown && this.hasAuthorizedAction('read');
|
|
}
|
|
}
|