<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Display different Iframe for Guest and for Registered users</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111474790" />
  <subtitle>Display different Iframe for Guest and for Registered users</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111474790</id>
  <updated>2026-04-07T09:05:35Z</updated>
  <dc:date>2026-04-07T09:05:35Z</dc:date>
  <entry>
    <title>RE: Display different Iframe for Guest and for Registered users</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111586101" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111586101</id>
    <updated>2018-11-17T00:04:02Z</updated>
    <published>2018-11-17T00:04:02Z</published>
    <summary type="html">&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2018-11-17T00:04:02Z</dc:date>
  </entry>
  <entry>
    <title>Display different Iframe for Guest and for Registered users</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111474789" />
    <author>
      <name>Gabriel Nemeth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111474789</id>
    <updated>2018-11-07T10:35:27Z</updated>
    <published>2018-11-07T10:35:27Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I want to achieve:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;display one iframe for guest users only&lt;/li&gt;
  &lt;li&gt;on the same page display another iframe for logged in users only&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I found one workaround&amp;nbsp; for the permissions, simply
  put&amp;nbsp;&lt;code&gt;permissions.check.guest.enabled=false&lt;/code&gt;
  inside&amp;nbsp;&lt;code&gt;portal-ext.properties&lt;/code&gt;. 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 primitive scenario like this in liferay.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Gabriel Nemeth</dc:creator>
    <dc:date>2018-11-07T10:35:27Z</dc:date>
  </entry>
</feed>
