feat: 🎸 implement add sources on targets

This commit is contained in:
Randall Morey committed 2021-09-28 14:09:11 -04:00
1 parent 3ecb8b8ea9
commit 021be5d689
6 files changed
+68 -8

No files matched your search

+14
View File
@@ -13,6 +13,13 @@ export default class TargetAbility extends ModelAbility {
return this.hasAuthorizedAction('authorize-session');
}
/**
* @type {boolean}
*/
get canAddHostSources() {
return this.hasAuthorizedAction('add-host-sources');
}
/**
* @type {boolean}
*/
@@ -20,6 +27,13 @@ export default class TargetAbility extends ModelAbility {
return this.hasAuthorizedAction('remove-host-sources');
}
/**
* @type {boolean}
*/
get canAddCredentialSources() {
return this.hasAuthorizedAction('add-credential-sources');
}
/**
* @type {boolean}
*/