mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 08:02:40 +08:00
11 lines
285 B
JavaScript
11 lines
285 B
JavaScript
const { IGNORE_FLAGS_AGAINST_STAFF } = require('../../../config');
|
|
|
|
// If a given user is a staff member, always approve their comment.
|
|
module.exports = ctx => {
|
|
if (IGNORE_FLAGS_AGAINST_STAFF && ctx.user && ctx.user.isStaff()) {
|
|
return {
|
|
status: 'ACCEPTED',
|
|
};
|
|
}
|
|
};
|