The automatic translation from HTML Template Pro to Template::Toolkit incorrectly scoped permission checks within loops.
Created attachment 3872 [details] [review] Signed-off patch
*** Bug 6157 has been marked as a duplicate of this bug. ***
Pushed please test
Seems to be working now. Closing.