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

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

export const getCanReadOnly = (id, userPermissions) =>
  !(id
    ? // todo: fix permissions
      hasPermission(PCN_GET_USERS /* PCN_PUT_CUSTOM_REPORTS */, userPermissions)
    : hasPermission(PCN_GET_USERS /* PCN_POST_CUSTOM_REPORTS */, userPermissions));
