We have a usecase where we need to display better messages only to the editors and admins of the site, but the endusers will get custom messages. The visibility settings are not sufficient for this.

The attached patch introduces the use of hook_perm and add a permission "access better messages"

CommentFileSizeAuthor
use_hook_perm.patch1.34 KBderjochenmeyer

Comments

mohammed j. razem’s picture

Assigned: Unassigned » mohammed j. razem
Status: Needs review » Patch (to be ported)
mohammed j. razem’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.