I programmed a VF page and I put it inside a section of a custom object. Now when a user open one record and doesn't have the privileges to see the VF section, the system shows this page inside the section (image below):
The VF's security settings are perfect, but I want when a user, who doesn't have the privileges, opens the record page, the system has to show only the message " Insufficient privileges....." without the sidebar and the header. How can I accomplish this? Thank you for help.