Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8915

Take subgroups into account when using a group clause in an action filter rule

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2, 5.5
    • Fix Version/s: 5.4.2-HF24, 5.5.0-HF09, 5.6-RC1, 5.6
    • Component/s: None

      Description

      When using the <group> clause in an action filter rule, subgroups are not taken into account.
      For example, lets say you have:

      <filter id="myFilter">
        <rule grant="true">
          <group>testgroup</group>
        </rule>
      </filter>
      

      if a user belongs to a subgroup of the testgroup group, the filter will return false.
      It would be nice to handle subgroups as well.
      The fix looks trivial: using principal.isMemberOf(...) instead of principal.getGroups().contains(group) in DefaultActionFilter#checkGroups.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: