Needs review
Project:
Tacle Rules
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2014 at 09:58 UTC
Updated:
11 Sep 2014 at 09:58 UTC
Hi,
nice module you've got there, but the D7-Port seems to have (at least) one bug.
In the function "tacle_rules_condition_user_has_tacl_access" it's looking if "$grants[$scheme['realm']][$term->tid]" is empty, but the array isn't keyed by the tids. The tids are the values of the array, so we need a in_array here.
Or i don't quite know how this is supposed to work, but for me this change fixed it.
Attaching the patch for the one-line-change. (not that into patches... so if it doesn't work, sorry for that ^^)
| Comment | File | Size | Author |
|---|---|---|---|
| condition_user_has_tacl_access.diff | 855 bytes | serkanb |