Display different Iframe for Guest and for Registered usersDisplay different Iframe for Guest and for Registered usershttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1114747902024-03-29T15:45:00Z2024-03-29T15:45:00ZRE: Display different Iframe for Guest and for Registered usersAmos Fonghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1115861012018-11-17T00:04:02Z2018-11-17T00:04:02Z<p>Yea, you're right, the users will inherit permissions from guest.
I've seen this question asked before in the forums, but can't find it now.</p>
<p> </p>
<p>Is your iframe in a web content? The simplest way is probably to
create a web content template which shows different content if the
user is signed in or not.</p>Amos Fong2018-11-17T00:04:02ZDisplay different Iframe for Guest and for Registered usersGabriel Nemethhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1114747892018-11-07T10:35:27Z2018-11-07T10:35:27Z<html><head></head><body><p>Hi all,</p>
<p> </p>
<p>What I want to achieve:</p>
<ul>
<li>display one iframe for guest users only</li>
<li>on the same page display another iframe for logged in users only</li></ul>
<p>Sounds easy, but it's not. The problem is, even if I check the
permission for the first iframe to be visible only for guests, it
displays also for logged in users. I guess this is because the logged
in users inherits permissions from guest users.</p>
<p> </p>
<p>I found one workaround for the permissions, simply
put <code>permissions.check.guest.enabled=false</code>
inside <code>portal-ext.properties</code>. Everything is working fine,
the iframes are displaying as intended, but here comes the funny part.
Now my logged in user can't log out, since he don't have permissions
for that. Now I tried for 2 days different combination of permissions
to display the user bar on the top and the user menu on the left to
enable for users to log out without success. At this point I'm really
frustrated, that I can't set up a p