mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: add showDefaultRole option
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -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',
|
||||
],
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user