feat: 🎸 allow session recording deletion (#2132)

* feat: 🎸 allow session recording deletion
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2024-02-13 13:26:23 -08:00
1 parent 4db8b8e1e7
commit 786e6130cd
9 files changed
+136 -4

No files matched your search

@@ -21,6 +21,14 @@ export default class SessionRecordingAbility extends ModelAbility {
return !this.model.isUnknown && super.canRead;
}
/**
* Only "known" session recording types may be deleted.
* @type {boolean}
*/
get canDelete() {
return !this.model.isUnknown && super.canDelete && this.model.isAvailable;
}
get canDownload() {
return this.hasAuthorizedAction('download');
}