chore: 🤖 add abilities for injected app cred sources (#1285)
* chore: 🤖 add abilities for injected app cred sources
This commit is contained in:
1 parent
a3337b3771
commit
069a864cbb
4 files changed
+31
-7
No files matched your search
@@ -37,7 +37,15 @@ export default class TargetAbility extends ModelAbility {
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get canRemoveBrokeredCredentialSources() {
|
||||
get canAddInjectedApplicationCredentialSources() {
|
||||
return (
|
||||
this.model.isSSH && this.hasAuthorizedAction('add-credential-sources')
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
get canRemoveCredentialSources() {
|
||||
return this.hasAuthorizedAction('remove-credential-sources');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user