Closed sjurgis closed 7 months ago
Hi @sjurgis,
I checked older versions of SOQL Lib (starting from v2.2.0 and older), and there is no if (queryException != null)
, so probably someone updated your copy, and I even know why! 👯
The SOQL_Test.stripInaccessibleToList
method is executed in a standard user context.
By default Standard User
Profile has no access to the Task.Type
field.
I assume that access to the Task.Type
field on your org was granted, and that is fine.
The Standard User
Profile on your org has access to the Task.Type
field, but we need Profile with no access to Task.Type
so stripInaccessibleToList
will be executed successfully.
I updated SOQL Lib, so instead of Standard User
Profile we use Minimum Access - Salesforce
. It should resolve the problem.
Please update your SOQL Lib with code from the main
branch (SOQL.cls
and SOQL_Test.cls
) and let me know if it works as expected.
Thanks, seems working!
After upgrading from older version (previous version unknown, but older than v2.2.0) I am getting:
I presume because expected exception wasn't throw. Spring '24 Patch 9.1 Unlimited Edition
In previous version I can see
So perhaps someone modified our copy the lib beforehand...