mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
fix: #8069, dont show hidden groups in search
This commit is contained in:
@@ -196,6 +196,15 @@ describe('Groups', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should not return hidden groups', async function () {
|
||||
await Groups.create({
|
||||
name: 'hiddenGroup',
|
||||
hidden: '1',
|
||||
});
|
||||
const result = await socketGroups.search({ uid: testUid }, { query: 'hiddenGroup' });
|
||||
assert.equal(result.length, 0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('.isMember()', function () {
|
||||
|
||||
Reference in New Issue
Block a user