diff --git a/apps/condo/domains/ticket/access/TicketComment.js b/apps/condo/domains/ticket/access/TicketComment.js index b8ffa61f698..f3a5f338a9c 100644 --- a/apps/condo/domains/ticket/access/TicketComment.js +++ b/apps/condo/domains/ticket/access/TicketComment.js @@ -43,7 +43,6 @@ async function canReadTicketComments (args) { return { ...accessFilter, - type: ORGANIZATION_COMMENT_TYPE, } } @@ -87,12 +86,6 @@ const checkManageCommentAccess = async (args) => { const hasAccess = await canManageObjectsAsB2BAppServiceUser(args) if (!hasAccess) return false - // service user can't create ticket comment with resident type or update type to resident - const resolvedCommentType = get(originalInput, 'type') - if (resolvedCommentType === RESIDENT_COMMENT_TYPE) { - return false - } - // service user can't update not his own ticket comment if (operation === 'update') { const comment = await getByCondition('TicketComment', { id: itemId, deletedAt: null })