Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10196

Set security object on groovy context

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      In a groovy service to call the security object you need to do :

      Security security = dispatcher.dispatchContext.security

      For simplification, I set the security object in groovy context like dispatcher and delegator

       

        Attachments

        1. 10196.patch
          0.9 kB
          Dennis Balkir

          Activity

            People

            • Assignee:
              soledad Nicolas Malin
              Reporter:
              soledad Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: