I have the master table "Orders" with four detail tables. The master table has User ID security enabled on the "Employee" field with Allow View All enabled so salesmen can see each others orders but cannot edit each others orders. The "Employee" field contains the UserID of the owner of the order as it should (verified in database) as an Int(11).
Of course in the list of Orders the Master/Detail Edit button now only shows up when the current user owns that Order, this part is working properly.
Unfortunately now when the user who owns the Order goes to insert a row to a detail table using Master/Detail Edit an error is thrown:
The current user (X) is not authorized to insert the record. Master filter: OrderID = X
...where X is the specific UserID and OrderID.
None of the detail tables have User ID security enabled and they all have the proper permissions in User Level security.
The only relevant custom code is in Orders -> Row_Updating where I have:
$newRow["Employee"] = $oldRow["Employee"];
to keep the owner of the record the same through edits.
Orders are created from Quotes in the "Quotes" table, which is nearly identical to the Orders table and they even use the exact same detail tables. The Quotes table does not have User ID security, instead it has a generic filter that only shows the Quotes the current user made. In this near identical table without User ID security, salesmen are able to do Master/Detail Edit to insert detail table records with no issues at all.
This is with PHPMaker 2025.