You can use get ( PrivilegeSetName ) to check the privilege set name to determine the appropriate layout to go to.
You can Go to the layout, use Get ( LayoutAccess ) to see if the user has access to the layout ( 0 = no access ) and then return the user to their original layout if they do not have access.
Thank you very much... you have made my day
Am I right in thinking you therefore set a script trigger which is set to go when you enter a layout you would like say an intern account not to have access to. I have gone with this and the script inserts a calculated result as:
Get (AccountName) = "Intern" = Get ( LayoutAccess ) = 0
Followed by a go to layout option.
However, it's currently not letting any account access it. Any ideas where I'm going wrong?