Hi All,
I have created a query for inventDim table and give the range as 'inventSiteId = !2 !3 !4 !5 !6'. and i created a new policy by setting this as primary table as 'inventDim' and setting this Query and i added some Constrained table to restrict the Sites for several forms and the problem i am facing is , when this policy has assigned to one of the user , he can able to see site : 1 in every forms , but when he face situation like InventDim::findOrCreate(inventDim).inventDimId in his code , the mentioned find method returns empty inventDimId , so it tries to create it and am getting error 'Cannot create inventDimId the record already exists'.
Note : i am setting the Operation property for the Policy as 'Select' only and here i am getting to restrict the other sites to the particular user. Any Idea guys??
*This post is locked for comments
I have the same question (0)