Allow anonymous access for complete timelapse

This commit is contained in:
xbgmsharp
2024-01-17 20:18:40 +01:00
parent 3f51e89303
commit d0bc468ce7
2 changed files with 3 additions and 2 deletions

View File

@@ -316,7 +316,8 @@ BEGIN
RETURN False;
END IF;
IF _type ~ '^public_(logs|timelapse)$' AND _id IS NOT NULL THEN
RAISE WARNING '-> ispublic_fn _type [%], _id [%]', _type, _id;
IF _type ~ '^public_(logs|timelapse)$' AND _id > 0 THEN
WITH log as (
SELECT vessel_id from api.logbook l where l.id = _id
)