MT#58964 do not render licenses for public platforminfo

* public access (no user) to /api/platforminfo gets only
  the default public json file without licenses rendering

Change-Id: I636e042944c7c18a08db22e9142a8624c67332c7
mr12.5
Kirill Solomko 10 months ago
parent 522fd97020
commit 6cb38f0971

@ -16,7 +16,11 @@ ELSE;
END;
TRY;
json = c.stash.process_json_file_cb(json_file);
IF !c.user_exists;
INCLUDE $json_file;
ELSE;
json = c.stash.process_json_file_cb(json_file);
END;
CATCH;
json = '{"error": "an internal error when fetching the config data"}';
END;

Loading…
Cancel
Save