mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 17:06:37 +08:00
12 lines
325 B
JavaScript
12 lines
325 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 Users.getByID.load(assigned_by);
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = CommentStatusHistory;
|