Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12719, comment 31


Ignore:
Timestamp:
May 26, 2020, 7:05:26 PM (4 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12719, comment 31

    initial v1  
    22> 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.
    33
    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`.
     4That 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`).