mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 02:56:56 +08:00
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
const {SEARCH_OTHER_USERS} = require('../../perms/constants');
|
|
|
|
const CommentStatusHistory = {
|
|
assigned_by({assigned_by}, _, {user, loaders: {Users}}) {
|
|
if (!user || !user.can(SEARCH_OTHER_USERS) || assigned_by == null) {
|
|
return null;
|
|
}
|
|
|
|
return Users.getByID.load(assigned_by);
|
|
}
|
|
};
|
|
|
|
module.exports = CommentStatusHistory;
|