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

Wrong context to check rights on metadata with right limitation

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: