mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
feat: #7957, allow post queue based on group
allow multiple select in ACP pages
This commit is contained in:
@@ -964,6 +964,7 @@ describe('Post\'s', function () {
|
||||
|
||||
after(function (done) {
|
||||
meta.config.postQueue = 0;
|
||||
meta.config.groupsExemptFromPostQueue = [];
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -1057,6 +1058,15 @@ describe('Post\'s', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should bypass post queue if user is in exempt group', function (done) {
|
||||
meta.config.groupsExemptFromPostQueue = ['registered-users'];
|
||||
socketTopics.post({ uid: uid, emit: () => {} }, { title: 'should not be queued', content: 'topic content', cid: cid }, function (err, result) {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(result.title, 'should not be queued');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('upload methods', function () {
|
||||
|
||||
Reference in New Issue
Block a user