[xwiki-notifications] [xwiki/xwiki-platform] cecbe7: XWIKI-21478: Improve rights check of template macros