fix(model/paste): fix faulty condition

This commit is contained in:
Tiara Rodney 2022-04-16 07:22:11 +02:00
parent c645478b98
commit 93ed72d5dc

View file

@ -94,7 +94,7 @@ def load(proto: Paste, backend: object) -> Optional[Paste]:
if proto.sub and model.sub != shash(
proto.sub,
model.data_hash,
proto.pid) or not proto.sub and model.sub:
proto.pid) or (not proto.sub and model.sub):
raise SubError('Paste not owned by user')