kklosson wroteBen,
Can you provide the protection rule and some context of the BO if required? Protection rules can fool you (they have certainly fooled me before). But my inclination is to review the application of the rule and its implication before suspecting a bug. Happy to help - perhaps a remote session. Sometime a second set of eyes will help.
Thanks for your attention;
I have created a simple BSV test to produce the issue, 7z zip fileattached
Please follow the following steps and you can see the problem;
Install the bsv, login (admin/password)
*) As you have logged in ad admin, click on Step 1 button and add 2 customers. Customer A and customer B
*) Logout as Admin and Login as Customer A (very important step)
*) Click on Step 2 Add Orders to Customer - You will see Customer A only. Go to Edit mode and add 2 or 3 orders
*) While you're still logged in As customer A, click on Step 3 and 4 to see list of POs and counts
*) Now, Logout and Login as Customer B. And got to Step 2 and add 1 order to Customer B.
*) The moment of surprise... Got to step 3 and 4 and you will see the POs and counts of the whole system regardless the READ PROTECT I have put in the PO Object:
If NOT(PO IS NEW) AND PO.ParentCustomer<>LoggedInCustomer Then READ PROTECT PO FROM ALL
And in the SQL tables, the PO as the correct parent:
4635 2 2015-04-23 15:10:27 PO 1 Customer 4632 Orders
4636 2 2015-04-23 15:10:39 PO 2 Customer 4632 Orders
4637 2 2015-04-23 15:39:04 Po 3 Cust b Customer 4633 Orders
The READ PROTECT does not do any filtering for FIND action and you have to use WHERE clause, which defeats the purpose of READ PROTECT filtering, because the WHERE clause can be hacked.
Please review the rules and see what you think. Thank you in advance.