Changes between Version 21 and Version 22 of Ticket #11474
- Timestamp:
- Jul 11, 2015, 9:12:32 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11474 – Description
v21 v22 8 8 1. [browser:/branches/1.0-stable/trac/web/chrome.py@12468:1078,1109#L1069] 9 9 * Fine-grained permission checks should be done in `format_emails` and `format_author`. 10 11 This ties in closely with some other changes that were discovered while working on #10018. Those issues will be reported in other tickets.12 13 On a related note, I wonder if it would make sense to have `Chrome` implement `IPermissionRequestor` and return `EMAIL_VIEW`, rather than defining the permission in [browser:/branches/1.0-stable/trac/perm.py@12229:483-484#L473 perm.py], which is a bit out of place.14 10 15 11 For the case, … … 54 50 55 51 However, that's just a quick implementation, and more care is needed to fully implement the changes. It may be possible to simplify the behavior by isolating the `EMAIL_VIEW` checks to the `Chrome` class. 52 53 This ties in closely with some other changes that were discovered while working on #10018. Those issues will be reported in other tickets. 54 55 On a related note, I wonder if it would make sense to have `Chrome` implement `IPermissionRequestor` and return `EMAIL_VIEW`, rather than defining the permission in [browser:/branches/1.0-stable/trac/perm.py@12229:483-484#L473 perm.py], which is a bit out of place.