-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protected pages #70
Comments
This is what I have written: I guess the issue is that, when installed, any content editor can set any page to be "ADMIN ONLY". However, in reality, if they visit the page, it will be indexed in the cache and therefore available to anyone. |
We observed some really strange behaviour:
|
What if we added member ID from the session to the cache key? Wouldn't user ID segment the cache appropriately? |
Yeah, I think DynamicCache::getCacheKey() should consider user Id as well. Would that fix your issue? |
Hi Damian, Let me firstly say that this is an awesome module. Adding the user ID may be a good idea. This is what I wrote so far: THANK YOU for your help. |
@sunnysideup you want to PR anything to fix the problems you describe? |
I will have a look at this in a few weeks only. Here is basically what I propose to add: |
It appears to me that for the 4.3.0 version, when you have a page that is only accessible to admins then, once cached (admin browsing the site), this page is accessible to anyone. While this is logical and correct, I would suggest that "out of the box" the following is added (just a concept at this stage)
You can then add a config option to turn off this basic protection.
The text was updated successfully, but these errors were encountered: