import { PCN_GET_ONLINE_HELP } from '@/modules/@common/acl/constants';

import { hasPermission } from '@/modules/@common/user/helpers';

export const getCanReadOnly = (id, userPermissions) =>
  !(id
    ? // todo: fix permissions
      hasPermission(PCN_GET_ONLINE_HELP, userPermissions)
    : hasPermission(PCN_GET_ONLINE_HELP, userPermissions));
