Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions v2.0/handlers/apps_handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ async function stewardHandler(req, res) {
c.contactid,
COALESCE(c.contactname, l.orcidname) AS contactname,
s.stewardid,
s.taxonomyexpert,
-- The databases this steward is authorized on. Kept as a scalar
-- subquery rather than a join: the outer query ends in LIMIT 1, so a
-- join against the one-row-per-database ti.stewarddatabases would
Expand Down Expand Up @@ -341,6 +342,10 @@ async function stewardHandler(req, res) {
name: rows[0].contactname,
contactid: rows[0].contactid, // null if no link
stewardid: rows[0].stewardid, // null if not a steward
// ti.stewards.taxonomyexpert is NOT NULL, so this is only null when the
// join found no steward at all — null means "not a steward", not "a
// steward who isn't a taxonomy expert".
taxonomyexpert: rows[0].taxonomyexpert,
Comment on lines +345 to +348
databases: rows[0].databases, // [] if not a steward
sessionuuid,
expiresat: rows[0].expiresat,
Expand Down
Loading