<@U6VBKMYS1> if you are doing this in client scrip...
# suitescript
j
@lewisdd if you are doing this in client script you could use an alert instead of an error message. alert('you are not allowed to access this page'); then redirect them or something.