* feat: 🎸 Update models for vault ssh cert feature (#1591) ✅ Closes: ICU-7546 * feat: 🎸 Setup types in cred library forms and use HDS component (#1597) * feat: 🎸 Setup types in cred library forms and use HDS component ✅ Closes: ICU-7673 * feat: 🎸 Add vault ssh cert type for credential library (#1608) * feat: 🎸 Add vault ssh cert type for credential library ✅ Closes: ICU-7678 * feat: 🎸 Enable feature flag for vault ssh cert work (#1614) * fix: 🐛 Change fields to optional as they get default by backend (#1615) * Chore/cleanup vault ssh cert (#1616)
16 lines
353 B
JavaScript
16 lines
353 B
JavaScript
import ModelAbility from './model';
|
|
/**
|
|
* Provides abilities for credential.
|
|
*/
|
|
export default class CredentialLibraryAbility extends ModelAbility {
|
|
// =permissions
|
|
|
|
/**
|
|
* Only "known" credential library types may be read.
|
|
* @type {boolean}
|
|
*/
|
|
get canRead() {
|
|
return !this.model.isUnknown && this.hasAuthorizedAction('read');
|
|
}
|
|
}
|