Closed (fixed)
Project:
Ubercart Terms of Service
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2010 at 23:06 UTC
Updated:
7 Feb 2010 at 19:40 UTC
This module currently exposes the callback at uc_termsofservice/node/autocomplete which doesn't enforce the "administer nodes" permissions by making sure that nodes are published. This is OK to discuss here because this module doesn't have a stable release yet.
This patch checks for this permission and adds n.status = 1 where relevant, and also shows a note to site administrators that the ToS node will be displayed regardless of node access permissions.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_tos_node_access.patch | 1.34 KB | ezra-g |
Comments
Comment #1
pcambraI've applied this patch, but the code was taken from Panels module so maybe you should check it there too.