Unrelated table requires access in Role maintenance to run script
The Customer has written a script using UDT to look at the User Code and the Salesman Code to permit access to only the Salesperson's customers. For example, if the user logged in is HSW and the Salesman Code is 0001, the UDT would have an entry of HSW0001. Upon opening the Customer in Customer Inquiry if the combination of Login and Salesperson matched, the screen would open; if not, a message says you are not authorized. And it works perfectly, IF a totally unrelated table is allowed in Role maintenance. So we removed the table; the result, the script no longer worked at all. By trial and error, we found a totally different UDT that required access. Upon checking (allowing) it, the script now works again.
Can anyone offer an explaination as to why allowing access in Role maintence to a UDT that has nothing to do with the script being currently run, would affect the script?