mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 11:58:33 +02:00
Fix image retrieval by anonymous user.
This commit is contained in:
parent
3f58e1b453
commit
f5004518aa
2 changed files with 3 additions and 5 deletions
|
@ -44,9 +44,7 @@ order by created_at desc;
|
|||
-- :name get-image :? :1
|
||||
select * from images
|
||||
where id = :id
|
||||
and deleted_at is null
|
||||
and ("user" = :user or
|
||||
"user" = '00000000-0000-0000-0000-000000000000'::uuid);
|
||||
and deleted_at is null;
|
||||
|
||||
-- :name create-image :<! :1
|
||||
insert into images ("user", name, collection, path, width, height, mimetype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue