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

Manage vocabularies and permissions bug


    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Fix Version/s: 6.2.0 CE M4
    • Component/s: Categories
    • Environment:


      Users who do not have permission for Site Permissions (com.liferay.portal.model.Group; PERMISSION) but have permissions to manage actually manage Vocabularies.

      To reproduce:

      1. Create an organization
      2. Create an Organization Role
      3. Define permissions to manage categories and vocabularies for that role
      4. Create a user with that Organization Role
      5. Try to manage Vocabularies (none are visible, but you can add vocabularies)

      To fix the view bug you need to give that role a permission to manage Site permissions.

      6. Go to "Define Permissions" of that role
      7. Select "Organization Administration"
      8. Check the "Permission" of Site box.

      The vocabularies will become visible.

      Why it happens:

      File : liferay/portal-web/docroot/html/portlet/asset_category_admin/view.jsp
      At line 33 :
      <c:if test="<%= GroupPermissionUtil.contains(permissionChecker, themeDisplay.getParentGroupId(), ActionKeys.PERMISSIONS) %>">
      <aui:button cssClass="permissions-button" data-url="<%= permissionsURL %>" name="categoryPermissionsButton" value="permissions" />

      So the button will be on the page only if the user has permission for Group PERMISSION

      then on the file:

      At line 251 :
      A.one(idPrefix + 'categoryPermissionsButton').on(EVENT_CLICK, instance._onChangePermissions, instance);

      The button is not there and the script fails, thus it does not load the vocabulary content.




            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:
                Days since last comment:
                5 years, 20 weeks, 2 days ago


                Version Package
                6.2.0 CE M4