Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5722

Wrong context to check rights on metadata with right limitation

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.4.7, 3.5.5, 3.7, 3.9
    • 3.7
    • None
    • None

      If we have a metadata with a right limitation (restrict-to) on it, the context is not read, by default, the right is check on "/contributor" context.

      Line 1026-1027 of DefaultContentType.java, there is a FIXME comment:

      // FIXME use a component for converting the content into a context
      [...]
      _rightsManager.hasRight(login, rightId, "/contributor")

      Then a user with rights only on orgunits (for ODF plugin) can open the content in edition, but never edit it because fields are all in read-only mode.

          [CMS-5722] Wrong context to check rights on metadata with right limitation

          Laurence Aumeunier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Delphine Gavalda (Inactive) made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Thibaut Rizzi (Inactive) made changes -
          Fix Version/s New: 3.4.7 [ 12086 ]
          Thibaut Rizzi (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Assignee New: Thibaut Rizzi [ trizzi ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 3.5.5 [ 12090 ]
          Fix Version/s New: 3.6 [ 11785 ]
          Fix Version/s New: 3.7_LTE [ 11927 ]
          Bérénice Maurel created issue -

            trizzi Thibaut Rizzi (Inactive)
            bmaurel Bérénice Maurel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: