Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-462

HasRightAction can't be used with the existing rights managers and right context prefix without specifying a base context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0.0RC1
    • Plugin core
    • None

      HasRightAction can be passed a base context as a parameter. If not, it assumes "/application" and asks the specified RightManager if the user has the right on this context.
      All the existing right manager prepend the passed context with the specified context prefix.
      Default and Web context prefix already return "/application" or "/application/...", so the full context is "/application/application/..." and the RightManager always return false.

      To resolve this, the default base context value for HasRightAction should be the empty string.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: