Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-35566

Web Content Permissions for Global Scope don't work with Asset Publisher

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      7
    • Fix Priority:
      4

      Description

      Key issue:
      Asset publisher does not recognise global scope add web content permission.

      Story:
      As an admin, I want to let all normal users (Role=User) add draft announcements to the intranet homepage. I want these to be managed through a workflow so they are approved by admins before they get published. I want unauthenticated and authenticated (all) users to see the published announcements on the homepage.

      How it's implemented:
      An asset publisher on the homepage has been configured to add web content of structure "announcement" to the global scope. Why - because all the other features that should do this don't work (see notes below).

      Notes:
      This is a 'stack of hacks' because of some key shortcomings in other areas:

      • Announcement Portlet has no workflow out of the box (it's very rare that anyone would want to let users create announcements with no workflow). It's also old school thinking that admins will be the only ones making announcements as they often don't have time or aren't part of the relevant team to review announcement content.
      • Even if the announcements portlet did have a workflow you can't give permission for a user to make an announcement to guests (the "General" scope in the announcement portlet is unpermissionable - only admins can access this scope) - another bug.
      • Web content sub-types and structures don't have separate workflows. It's all or nothing. In this scenario we don't want general users to be able to add web content everywhere. Just to announcements so therefor we have no choice but to use global so we can have two separate web content workflows (one on and one off).

      Steps to reproduce:

      1. Fire up a vanilla bundle
      2. Add a new web content structure and template to the global community
      3. Setup an asset publisher to publish web content to that structure under the global scope (see screenshot 1)
      4. Add the permission to the User role (screenshot 2)
      5. Login as a normal user - add button is missing when it should be visible (screenshot 3)

      The only way to get the button to appear (screenshot 5) is to add the wrong community permissions (screenshot 4). This is useless because as soon as the user clicks the button it fails since it's the wrong permission (screenshot 6) - the global permission should activate the button if that's where the asset publisher is creating the content (screenshot 5).

      NOTE: You must add view permission on the structure and the template for role User

        Attachments

        1. 1.png
          1.png
          38 kB
        2. 2.PNG
          2.PNG
          12 kB
        3. 3.PNG
          3.PNG
          32 kB
        4. 4.png
          4.png
          20 kB
        5. 5.png
          5.png
          10 kB
        6. 6.PNG
          6.PNG
          5 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 1 week, 2 days ago

                  Zendesk Support