core: domain_user: ignore role=default

This commit is contained in:
undefined committed 2025-03-21 07:46:57 +08:00
1 parent 033e88fdce
commit f0d49c2893
1 file changed
+1 -4
+1 -4
View File
@@ -105,14 +105,11 @@ class DomainUserHandler extends ManageHandler {
domain.collUser.aggregate([ domain.collUser.aggregate([
{ {
$match: { $match: {
$or: [{ // TODO: add a page to display users who joined but with default role
join: true,
}, {
role: { role: {
$nin: ['default', 'guest'], $nin: ['default', 'guest'],
$ne: null, $ne: null,
}, },
}],
domainId, domainId,
}, },
}, },