Closed (fixed)
Project:
Admin message
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2012 at 17:29 UTC
Updated:
3 Dec 2012 at 16:00 UTC
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!