@appxdigital/appx-core 0.1.87 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ let PrismaService = class PrismaService {
|
|
|
44
44
|
// delete, deleteMany, update and updateMany methods should not apply field omission because they are not selecting fields
|
|
45
45
|
if (!options?.BYPASS_OMISSION && !['delete', 'deleteMany', 'update', 'updateMany', 'create', 'createMany'].includes(methodKey.toString()))
|
|
46
46
|
params = this.applyFieldOmission(String(propKey), userRole, params);
|
|
47
|
-
if (!options?.BYPASS_FILTERING) {
|
|
47
|
+
if (!options?.BYPASS_FILTERING && !['create', 'createMany'].includes(methodKey.toString())) {
|
|
48
48
|
params = this.applyWhereConditions(String(propKey), userRole, params, user, methodKey);
|
|
49
49
|
// findUnique should be findFirst for where conditions to work properly
|
|
50
50
|
if (methodKey === 'findUnique')
|
package/package.json
CHANGED