feat: 🎸 Add abilities to target for storage buckets (#148)
✅ Closes: ICU-8081
This commit is contained in:
1 parent
983eee2742
commit
f0e1101479
2 files changed
+94
-22
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user