Skip to content
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

Fix EZP-29144: Website Toolbar cache doesn't work properly when Owner ( Self ) Policy Limitation is used #17

Conversation

jacek-foremski
Copy link
Contributor

@jacek-foremski jacek-foremski commented Jun 12, 2018

JIRA issue: EZP-29144

Excerpt from JIRA:

Currently, the cache related to Website Toolbar doesn't take into the account if someone is an owner of the viewed Content Object. This means that if someone who doesn't have content/edit permissions access views this Content Object first, then the owner won't have an option to edit that Content Object using Website Toolbar.

This PR fixes the issue in Legacy by introducing a new key (boolean) to the cache block that encompasses the website toolbar. The key should equal true if the logged in user is the owner of the accessed node.

Related PR: ezsystems/ezdemo#44

@jacek-foremski
Copy link
Contributor Author

ping @andrerom @adamwojs

@andrerom andrerom merged commit 085d403 into ezsystems:master Aug 2, 2018
@jacek-foremski jacek-foremski deleted the EZP-29144_website_toolbar_cache_fix branch August 2, 2018 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants