diff --git a/keyserver/src/fetchers/role-fetchers.js b/keyserver/src/fetchers/role-fetchers.js --- a/keyserver/src/fetchers/role-fetchers.js +++ b/keyserver/src/fetchers/role-fetchers.js @@ -7,7 +7,7 @@ async function fetchRoles(threadID: string): Promise { const query = SQL` - SELECT id, name, permissions, + SELECT id, name, permissions, special_role, special_role = ${specialRoles.DEFAULT_ROLE} AS is_default FROM roles WHERE thread = ${threadID} @@ -21,6 +21,7 @@ name: row.name, permissions: JSON.parse(row.permissions), isDefault: Boolean(row.is_default), + specialRole: row.special_role, }); } return roles;