Closed (fixed)
Project:
Taxonomy Access Control
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jun 2009 at 12:45 UTC
Updated:
13 Mar 2010 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
xjmLooks like there are several TAC module functions in in the admin.inc file that should be moved to the module file; in fact, I'd say everything from line 341 on. Does anyone have a reason that these functions should not be moved to the main module file?
Comment #2
xjmHere's a patch that simply moves those functions over.
NB: patch is rolled at the directory level; use the -p option.
Comment #3
xjmComment #4
keve commentedI would roll lines from lines 428.
I would leave functions 'taxonomy_access_defaults_update' and 'taxonomy_access_grants_update' in admin section, because these functions update the settings (database values) from the admin UI. These are not used by other hooks, and are not intented for API functions like 'taxonomy_access_get_grants'.
XJM: Please mark it 'to be ported' if you agree.
Comment #5
xjmAlright, looks good to me. :)
Comment #6
keve commentedPatch is commited. Thanks for xjm.
Comment #7
xjmWe should backport this to D5. I will make a patch
Marked #338891: Line 260: Call to undefined function _taxonomy_access_get_nodes_for_term() as a duplicate.
Comment #8
xjmHere is the patch for the 5.x branch (against 5.x-2.x-dev).
Comment #9
xjmTested #8 with 5.x-2.x-dev; works fine.
Comment #10
xjm#8 committed to 5.x-2.x-dev.