diff --git a/angular-frontend/src/app/components/inventory-item/inventory-item.component.ts b/angular-frontend/src/app/components/inventory-item/inventory-item.component.ts index fb1ddc5..d564051 100644 --- a/angular-frontend/src/app/components/inventory-item/inventory-item.component.ts +++ b/angular-frontend/src/app/components/inventory-item/inventory-item.component.ts @@ -15,6 +15,10 @@ export class InventoryItemComponent implements OnInit { } onDragStart(event: DragEvent) { + if (this.item.userLock !== this.currentUser) { + console.warn("EEEEEEEEEEEEEEEEEEEEEEEE!!!") + event.preventDefault(); + } event.dataTransfer?.clearData() event.dataTransfer?.setData("application/json", JSON.stringify(this.item)) }