I have made a modal form using ctools. The form works okay when the user has access rights, but with no access rights an empty modal form is showing and I get a browser error saying
"An AJAX HTTP error occurred. HTTP Result Code 403" (and a lot of debugging information)
Is this a flaw in ctools modal or am I missing something?
In case of access denied I would like to fall back to a standard access denied message.