mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 00:50:07 +08:00
13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
const { decorateWithPermissionCheck, checkSelfField } = require('./util');
|
|
const { VIEW_USER_STATUS } = require('../../perms/constants');
|
|
|
|
const UserState = {};
|
|
|
|
decorateWithPermissionCheck(
|
|
UserState,
|
|
{ status: [VIEW_USER_STATUS] },
|
|
checkSelfField('id')
|
|
);
|
|
|
|
module.exports = UserState;
|