core&ui: add showDefaultRole option

This commit is contained in:
undefined committed 2026-04-30 02:20:57 +08:00
1 parent 01ffba8bb2
commit d66e245bd5
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ export function apply(ctx: Context, config: ReturnType<typeof Config>) {
organization: udoc.school || udoc.uname,
avatar: avatar(udoc.avatar),
group: [
...(udoc.group.filter((g) => g !== `${udoc._id}`)),
...(udoc.group?.filter((g) => g !== `${udoc._id}`) || []),
i.unrank ? 'observers' : 'participants',
],
};