R – Change “access denied…” text string for document library web part

sharepointweb-parts

I have a MOSS publishing site and a document library with it's own unique permissions.

On the site home page (default.aspx) I have a document library webpart that shows a list of documents. If the user does not have permissions to view the documents the web part currently displays the message

"Access denied. You do not have permission to perform this action or access this resource."

is there a way to change this message to something more friendly?

Best Answer

If inheriting doesn't work out, you could also use jQuery to look for the error message and replace it with something friendly.

There is info about setting up jQuery in SharePoint in this question.

Related Topic