Page MenuHomePhabricator

D10106.id34065.diff
No OneTemporary

D10106.id34065.diff

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<LegacyRoleInfo[]> {
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;

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 2:20 PM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2571128
Default Alt Text
D10106.id34065.diff (702 B)

Event Timeline