fix(model/paste): fix faulty condition
This commit is contained in:
parent
c645478b98
commit
93ed72d5dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue