Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ISTE-152: Mobile number allowed from 4
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsingha-eGov committed May 23, 2024
1 parent b59bad6 commit 978666a
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as locale from "./locale";
import * as obps from "./obps";
import * as pt from "./pt";
import * as privacy from "./privacy";
import PDFUtil, { downloadReceipt ,downloadPDFFromLink,downloadBill ,getFileUrl} from "./pdf";
import PDFUtil, { downloadReceipt, downloadPDFFromLink, downloadBill, getFileUrl } from "./pdf";
import getFileTypeFromFileStoreURL from "./fileType";
import preProcessMDMSConfig from "./preProcessMDMSConfig";
import preProcessMDMSConfigInboxSearch from "./preProcessMDMSConfigInboxSearch";
Expand All @@ -26,7 +26,7 @@ const getPattern = (type) => {
case "SearchOwnerName":
return /^[^{0-9}^\$\"<>?\\\\~!@#$%^()+={}\[\]*,/_:;“”‘’]{3,50}$/i;
case "MobileNo":
return /^[6789][0-9]{9}$/i;
return /^[456789][0-9]{9}$/i;
case "Amount":
return /^[0-9]{0,8}$/i;
case "NonZeroAmount":
Expand Down Expand Up @@ -170,9 +170,7 @@ const NOCAccess = () => {
const userInfo = Digit.UserService.getUser();
const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code);

const NOC_ROLES = [
"FIRE_NOC_APPROVER"
]
const NOC_ROLES = ["FIRE_NOC_APPROVER"];

const NOC_ACCESS = userRoles?.filter((role) => NOC_ROLES?.includes(role));

Expand Down Expand Up @@ -266,7 +264,7 @@ const hrmsAccess = () => {
const wsAccess = () => {
const userInfo = Digit.UserService.getUser();
const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code);
const waterRoles = ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER","WS_CLERK"];
const waterRoles = ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"];

const WS_ACCESS = userRoles?.filter((role) => waterRoles?.includes(role));

Expand All @@ -276,7 +274,7 @@ const wsAccess = () => {
const swAccess = () => {
const userInfo = Digit.UserService.getUser();
const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code);
const sewerageRoles = ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER","SW_CLERK"];
const sewerageRoles = ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"];

const SW_ACCESS = userRoles?.filter((role) => sewerageRoles?.includes(role));

Expand Down Expand Up @@ -325,5 +323,5 @@ export default {
getConfigModuleName,
preProcessMDMSConfig,
preProcessMDMSConfigInboxSearch,
...privacy
...privacy,
};

0 comments on commit 978666a

Please sign in to comment.