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

A javascript error is thrown when the user doesn't have permisssion to add a Category or Vocabulary

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Where was the bug?:
      Javascript

      Description

      Steps to reproduce:
      1. Add an new user
      2. Create a new Site Role
      3. Associate the user to a site, the site to the created role, and the user to that role.
      4. Define the role permissions
      5. In permissions input choose: Control Panel:Site -> Categories (Control Panel).
      6. Select All and save
      7. Impersonate the user and go to Control Panel -> Categories

      The javascript console error shows: Uncaught TypeError: Cannot call method 'on' of null
      This error is related to the 'addCategoryButton'.

      8. In the role permissions page again, go to Site Content -> Categories (Control Panel).
      9. Select 'Add Category' and save

      In the Control Panel with the user again, now you'll see the same error but related to 'addVocabularyButton'.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ginson.ren Ginson Ren
                Reporter:
                antonio.junior Antonio Junior (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 43 weeks, 2 days ago