chore: 🤖 implement remove sources abilities on targets

This commit is contained in:
Randall Morey committed 2021-09-27 16:55:19 -04:00
1 parent add826007d
commit 3ecb8b8ea9
6 files changed
+97 -37

No files matched your search

+14
View File
@@ -12,4 +12,18 @@ export default class TargetAbility extends ModelAbility {
get canConnect() {
return this.hasAuthorizedAction('authorize-session');
}
/**
* @type {boolean}
*/
get canRemoveHostSources() {
return this.hasAuthorizedAction('remove-host-sources');
}
/**
* @type {boolean}
*/
get canRemoveCredentialSources() {
return this.hasAuthorizedAction('remove-credential-sources');
}
}