feat: 🎸 Add abilities to target for storage buckets (#148)

✅ Closes: ICU-8081
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-03-27 18:46:34 +00:00
1 parent 983eee2742
commit f0e1101479
2 files changed
+94 -22

No files matched your search

+14
View File
@@ -53,4 +53,18 @@ export default class TargetAbility extends ModelAbility {
get canRemoveCredentialSources() {
return this.hasAuthorizedAction('remove-credential-sources');
}
/**
* @type {boolean}
*/
get canSetStorageBucket() {
return this.model.isSSH && this.hasAuthorizedAction('set-storage-bucket');
}
/**
* @type {boolean}
*/
get canRemoveStorageBucket() {
return this.hasAuthorizedAction('remove-storage-bucket');
}
}