Commit c709acd
committed
Iterate over multilink items if they labelprop is accessible to the
user.
See: https://sourceforge.net/p/roundup/mailman/message/35763294/
[Roundup-devel] I can see nosy but not repeat over items
Basically using tal:repeat uses the viewableGenerator() method in the
templating.py MultilinkHTMLProperty. This Generator verifies that the
user has access to the item referenced in the multilink. However this
leads to the odd condition that:
all users in the nosy list of an issue are displayed with their
usernames then looking at issue3 if the user can see the nosy
property of issue3.
trying to tal:repeat using the elements of the nosy list in issue3
fails if the user doesn't have access to the user class. The
user's ability to access the mutlilink property doesn't matter.
This wierdness was fixed by changing the viewableGenerator to check
for View access to the label property for the class (user in the case
above).1 parent 4807045 commit c709acd
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2275 | 2275 | | |
2276 | 2276 | | |
2277 | 2277 | | |
2278 | | - | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2279 | 2281 | | |
2280 | 2282 | | |
2281 | 2283 | | |
| |||
0 commit comments