@rss/common
Advanced tools
Comparing version 0.0.72 to 0.0.73
@@ -17,3 +17,3 @@ 'use strict'; | ||
return r.role === ROLES.RSS_ADMIN || r.role === role && (criteria.tenantCode && criteria.tenantCode !== 'ALL' && r.tenantCode !== 'ALL' ? r.tenantCode === criteria.tenantCode : true) && (criteria.campusCode && criteria.campusCode !== 'ALL' && r.campusCode !== 'ALL' ? r.campusCode === criteria.campusCode : true) && (criteria.types ? criteria.types.some(function (type) { | ||
return r.types.includes(type); | ||
return r.types && r.types.includes(type); | ||
}) : true); | ||
@@ -20,0 +20,0 @@ }); |
{ | ||
"name": "@rss/common", | ||
"version": "0.0.72", | ||
"version": "0.0.73", | ||
"description": "common constant, classes, & helper", | ||
@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution", |
@@ -18,3 +18,3 @@ const READONLY_INVENTORY_ROLES = require('../constant/chemical/readonly-roles-inventory.constant'); | ||
: true) && | ||
(criteria.types ? criteria.types.some((type) => r.types.includes(type)) : true)), | ||
(criteria.types ? criteria.types.some((type) => r.types && r.types.includes(type)) : true)), | ||
); | ||
@@ -21,0 +21,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
801542