diff --git a/hat/assets/js/apps/Iaso/domains/forms/config/index.js b/hat/assets/js/apps/Iaso/domains/forms/config/index.js index 7c94393413..8eca201141 100644 --- a/hat/assets/js/apps/Iaso/domains/forms/config/index.js +++ b/hat/assets/js/apps/Iaso/domains/forms/config/index.js @@ -17,6 +17,7 @@ import { createInstance } from '../../instances/actions'; import * as Permission from '../../../utils/permissions.ts'; import { BreakWordCell } from '../../../components/Cells/BreakWordCell.tsx'; import { useCurrentUser } from '../../../utils/usersUtils.ts'; +import { DisplayIfUserHasPerm } from '../../../components/DisplayIfUserHasPerm.tsx'; export const baseUrl = baseUrls.forms; @@ -223,10 +224,9 @@ export const useFormsTableColumns = ({ )} {!showDeleted && ( <> - {userHasPermission( - Permission.SUBMISSIONS, - user, - ) && ( + - )} - {userHasPermission( - Permission.SUBMISSIONS, - user, - ) && ( + + - )} - {userHasPermission( - Permission.FORMS, - user, - ) && ( + + - )} - {userHasPermission( - Permission.FORMS, - user, - ) && ( - )} - {userHasPermission( - Permission.FORMS, - user, - ) && ( - )} + )}