Can I Show Flashmessage After Accessrules Filter Was Triggered ?

Hello, Everyone,

can anybody help me with this problem:

I have accessRules for filter which allow only admin can delete records in collection. If anybody except of admin try to delete - it get the modal window "Error 403 You have no rights to delete…",

Can I show this message not in Modal window, but in the FlashMessage box (Eg how it realized in demo ContactForm when I get error in sending process)

Thanks a lot for you answers and help.

Regards, Alex.

PS: modal_windows - what I get now

I_need_so - example what I mean in ContactForm (sorry that text in Russian in messages)

Take look at the class Referance might help you understand better