[apex] ApexCRUDViolation: user mode and system mode with test cases added#4244
Conversation
|
@rsoesemann and @rbklaassen please review this |
|
It looks pretty good @Tarush-Singh35. However, I can't tell from the code if it also covers the scenario where schema.isAccessible is used for the object/fieds. In that case it isn't needed to add a security mode to the SOQL query. |
adangel
left a comment
There was a problem hiding this comment.
Thanks for the PR!
Please have a look at my comments.
@rbklaassen sorry I did not understand what you are trying to say can you elaborate this |
|
@Tarush-Singh35 we have now a couple of test failures for some old tests. Can you look at them and decide, whether they are now wrong or whether the new rule changes do something wrong? https://github.com/pmd/pmd/actions/runs/3592105214/jobs/6047623060#step:7:7763 |
hey, @adangel I had gone through the code but could not find any error because I did not make any changes to the security enforced. Any help would be appreciated |
Generated by 🚫 Danger |
Also support more DML methods: *async and *immediate
[apex] ApexCRUDViolation: user mode and system mode with test cases added #4244
Describe the PR
Extending the Rules to handle the ApexCrudViolation using User Mode and System Mode
Fixes