sails-permissions icon indicating copy to clipboard operation
sails-permissions copied to clipboard

Audit policy could benefit from having model id stored

Open dottodot opened this issue 9 years ago • 2 comments

I know the model id is stored in the body field of the request log but it might be beneficial to store it as an attribute too just to make it easier to retrieve log information for a particular model as I'm not sure there an easy way to query a nested attribute.

dottodot avatar Nov 17 '15 10:11 dottodot

It already exists as req.model :)

ehsankhf avatar Dec 12 '15 20:12 ehsankhf

Sorry could you expand on what you mean as I'm not familiar with the use of req.model

dottodot avatar Dec 14 '15 08:12 dottodot