<?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>webContent for a given role in Liferay 7</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110426825" />
  <subtitle>webContent for a given role in Liferay 7</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110426825</id>
  <updated>2026-04-04T17:55:52Z</updated>
  <dc:date>2026-04-04T17:55:52Z</dc:date>
  <entry>
    <title>RE: webContent for a given role in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110536321" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110536321</id>
    <updated>2018-07-12T18:38:23Z</updated>
    <published>2018-07-12T18:38:23Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Ramalingaiah. D:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;where is control Panel inside set the values &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/configuration/JournalServiceConfiguration.java#L99-L103"&gt;articleViewPermissionsCheckEnabled&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;ol&gt;
  &lt;li&gt;Navigate to Control Panel &amp;gt; Configuration &amp;gt; System Settings&lt;/li&gt;
  &lt;li&gt;Under Web Experience, choose Web Content&lt;/li&gt;
  &lt;li&gt;Look for the settings &amp;quot;Article view permissions check enabled&amp;quot;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Since it's marked as &amp;quot;default settings for all instances&amp;quot;
  rather than system-wide (which you can read about more in the &lt;a
    href="https://dev.liferay.com/en/discover/portal/-/knowledge_base/7-0/system-settings"&gt;System
  Settings&lt;/a&gt; part of the documentation), it's possible that changing
  it through the UI won't actually do anything for existing portal
  instances, and you'll need use files in order to replace the values
  for existing portal instances. However, it's also possible that it
  will just work.&lt;/p&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-07-12T18:38:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: webContent for a given role in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110529457" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110529457</id>
    <updated>2018-07-12T09:37:13Z</updated>
    <published>2018-07-12T09:37:13Z</published>
    <summary type="html">&lt;p&gt;Hi Minhchau Dang,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thank you for replying &lt;/p&gt;
&lt;p&gt;i am using Liferay 7.0 version &lt;/p&gt;
&lt;p&gt;where is control Panel inside set the values &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/configuration/JournalServiceConfiguration.java#L99-L103"&gt;articleViewPermissionsCheckEnabled&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;can you please guide me&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank....&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2018-07-12T09:37:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: webContent for a given role in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110434292" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110434292</id>
    <updated>2018-07-11T17:59:54Z</updated>
    <published>2018-07-11T17:59:54Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Ramalingaiah. D:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;So my question now is:&amp;nbsp;&lt;strong&gt;Ignoring view permissions is the
          default behaviour for the Web Content Display
        portlet?&lt;/strong&gt;&amp;nbsp;With Asset Publisher portlet this doesn't
        happen. The web content is hidden when listing and viewing if
        the role hasn't view permissions on that content.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Yes, it's the default behavior for the web content display portlet.
  In 6.x and earlier versions of Liferay, this was governed by the
  portal property
  &lt;code&gt;journal.article.view.permission.check.enabled&lt;/code&gt;. In 7.x and
  later versions of Liferay, this is governed by adding a configuration
  for the
  &lt;code&gt;com.liferay.journal.configuration.JournalServiceConfiguration&lt;/code&gt;
  configuration (you can add &lt;code&gt;.cfg&lt;/code&gt; as a file extension and
  drop it in &lt;code&gt;osgi/configs&lt;/code&gt;, or you can use the Control
  Panel) and setting the value &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/configuration/JournalServiceConfiguration.java#L99-L103"&gt;articleViewPermissionsCheckEnabled&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-07-11T17:59:54Z</dc:date>
  </entry>
  <entry>
    <title>webContent for a given role in Liferay 7</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110426824" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110426824</id>
    <updated>2018-07-11T09:05:12Z</updated>
    <published>2018-07-11T09:05:12Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;1&lt;a&gt;down vote&lt;/a&gt;&lt;a href="https://stackoverflow.com/questions/26234790/private-webcontent-for-a-given-role-in-liferay#"&gt;favorite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I want to create web contents that can't be visualized by a given role.&lt;/p&gt;
&lt;p&gt;For example let's say I have the roles normal-user and plus-user. I
  want to create a Web Content that only plus-user's can see.&lt;/p&gt;
&lt;p&gt;If I create a WebContent and enable the &amp;quot;View&amp;quot; permissions
  on it only for the plus-user and display this WebContent in a
  WebContent display portlet, normal-user's can view it. Is this the
  expected behaviour? I have disable the default View permission for
  every role, even the the default guest role.&lt;/p&gt;
&lt;p&gt;I must be missing something because I believe this should be a pretty
  standard and obvious feature.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Update&lt;/strong&gt; Well it seems that I was misunderstanding the
  way how I could observe the effects of my changes.&lt;/p&gt;
&lt;p&gt;It seems that the configuration that I've described works. Although,
  the web content is hidden only when listing web contents with the Web
  Content List portlet. If I set individually a Web Content Display
  portlet to show the private content, any role will be able to see it,
  even if it hasn't permission. The same happens If I share the URL to
  the web content.&lt;/p&gt;
&lt;p&gt;So my question now is: &lt;strong&gt;Ignoring view permissions is the
    default behaviour for the Web Content Display portlet?&lt;/strong&gt; With
  Asset Publisher portlet this doesn't happen. The web content is hidden
  when listing and viewing if the role hasn't view permissions on that content.&lt;/p&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2018-07-11T09:05:12Z</dc:date>
  </entry>
</feed>
