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

Wrong context to check rights on metadata with right limitation

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: