Liferay 7 terms of use logout

Sean Megeath, modified 7 Years ago. New Member Posts: 14 Join Date: 3/23/15 Recent Posts

It looks as though the Terms of Use blocks any access to the Product Menu.  I'd like to provide the ability for a user to log themselves out, instead of agreeing to our terms of use.  Is there an easy configuration way to do this? My searches haven't gotten me anything.

thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Sean Megeath:

It looks as though the Terms of Use blocks any access to the Product Menu.  I'd like to provide the ability for a user to log themselves out, instead of agreeing to our terms of use.  Is there an easy configuration way to do this? My searches haven't gotten me anything.

Theoretically speaking, you can grant access to the product menu portlet via a portal property, and a user who hasn't agreed to the terms of use can render it if they hand-craft the URL.

portlet.interrupted.request.whitelist=\
  com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet

Practically speaking, having the portlet be whitelisted and having the terms of use page actually show it are completely separate things, because FTL_liferay.ftl still checks if you have agreed to the terms of use before it even renders anything (it's one of the conditions for isSetupComplete).

In other words, even with the whitelist, you'd still need a customization that either tells Liferay user setup is complete without terms of use, or changes the "I Disagree" button to just sign out the user.

We opened LPS-84177 to ask the product team to think about this scenario a little more carefully, because people can decline terms of use agreements, especially with the added transparency required of GDPR. Nothing has happened from that feature request, though.