Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch started as a bug fix: the close link is shown even when the user doesn't have permission to close the message. This meant the user would click it, it'd disappear but then reappear when reloading the page.
This patch fixes it by generating the link and checking permissions in a preprocess function for the template.
Because the preprocess function now exists, I also took the liberty of moving the node prep into the preprocess function as well.
Comment | File | Size | Author |
---|---|---|---|
admin_message_preprocess.patch | 1.75 KB | dsnopek |
Comments
Comment #1
dsnopekPatch committed!