Changes between Initial Version and Version 1 of Ticket #12719, comment 31
- Timestamp:
- May 26, 2020, 7:05:26 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12719, comment 31
initial v1 2 2 > I've considered that I'd like to modify `PermissionCache` and `check_permission` to accept a model instance rather than a resource instance to prevent fetching records each call. 3 3 4 That does sound interesting and nice because `resource` can be easily fetched through `ticket.resource`. Also, it would likely be backward compatible to most permission policies since both `Ticket` and `Resource` have the same fields: `realm`, `id`, `versions` .4 That does sound interesting and nice because `resource` can be easily fetched through `ticket.resource`. Also, it would likely be backward compatible to most permission policies since both `Ticket` and `Resource` have the same fields: `realm`, `id`, `versions` (but not `parent`).