This message is returned when the Customer doesn't have the required permissions for a specific action/page.
You can manage the permissions from the Configuration -> Access Control List page.
EDIT: I have misunderstood the question. It will require additional modifications to the nopCommerce source code to be able to send the required permission along with the access denied error.