mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
This commit is contained in:
@@ -533,8 +533,8 @@ describe('Controllers', function () {
|
||||
}
|
||||
}, function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert.equal(res.statusCode, 500);
|
||||
assert.equal(body, '[[error:no-session-found]]');
|
||||
assert.equal(res.statusCode, 403);
|
||||
assert.equal(body, '{"path":"/user/doesnotexist/session/1112233","loggedIn":true,"title":"[[global:403.title]]"}');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user