- Issue created by @Lus
Someone wanted the same functionality in 📌 Disabled page caching Needs review , I think this option should be added, but after that issue is merged.
- First commit to issue fork.
- Merge request !26Implement permission based tracking, adjust tests. → (Open) created by jernejmramor
- 🇸🇮Slovenia jernejmramor
Hi,
I implemented a potential solution for this:
Added a permission 'log recently_read entries' that can be granted to roles for which you'd like to implement tracking.
Updated service to check whether user has this role.
Added a test and adjusted existing tests to confirm functionality is still preserved.Marking this as needs review so if this gets confirmed by the community we can add this into the next release.
Confirmed that the patch/MR works on a vanilla install running D10.5.2. New permissions are available and views by Anonymous users are no longer logged to the block after leaving "Anonymous" user permission unchecked.