Closed insssomniac closed 2 years ago
Hi @insssomniac, The issue is not clear. Can you please provide the code or any screenshots?
Okay, i try to write something like "steps to reproduce" because just code will be not clear also.
Problem is what if someone changing regular fields like "name" or "slug" (post request from the form in "edit" view to the "update" action in controller) -- we have his user id and type, but if this user changes html with the gjs editor -- we don't have any info about who was done it, you can see it on the attached screenshot from the db
Hi @insssomniac, the issue seems with the package you are using altek/accountant. As there is a mutator for the gjs_data property of your Editable. And it seems your package is not working with the mutators.
Hi @jd-dotlogics, it seems problem isn't with a mutator, because if i changing the gjs_data field in the controller and saving the model, my account is detected correctly and shown in log.
It seems what guard "web" doesn't detect the user when saving comes from the editor. Also if I try to get the Auth::user() in the store_gjs_data() function, it returns null. So maybe it is another way to get the user?
Issue resolved, see release # 3.2.1
Hello,
I'm trying to log the changes of the pages, including changes of html made with gjs editor, but it is a problem with the fact that the editor doesn't determine the user who made the changes and saved the page. Is it possible to determine the user, maybe i can pass the current user in the editor view or something like this? (I'm using altek/accountant if it is important)
Thanks for the great product.