Skip to content

Commit

Permalink
Temporary fix for entity delete permission
Browse files Browse the repository at this point in the history
  • Loading branch information
annavik committed Jun 12, 2024
1 parent c99d8af commit 0e502eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/data-services/models/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export class Entity {
}

get canDelete(): boolean {
return this._data.user_permissions.includes(UserPermission.Delete)
return (
this._data.user_permissions.includes(UserPermission.Delete) ||
this.canUpdate // TODO: Skip when BE is returning correct permissions
)
}

get createdAt(): string {
Expand Down

0 comments on commit 0e502eb

Please sign in to comment.