Uploaded image for project: 'mod-finance'
  1. mod-finance
  2. MODFIN-155

Protect begin fiscal rollover with separate permission

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Template:
      Thunderjet/Firebird Back-end Story Template
    • Development Team:
      Thunderjet

      Description

      Purpose/Overview:
      There's a new requirement (UIF-168) to protect begin fiscal rollover with a separate assignable folio permission.

      Requirements/Scope:

      1. Protect begin fiscal rollover with separate permission

      Approach:

      • Define a new permission finance.ledger.rollover.start
      • Add that permission as a "permissionDesired" for the POST /finance/ledgers/<id>/rollover endpoint.
      • In the implementation for that endpoint, validate the permission if the rollover is run (via inspecting X-Okapi-Permissions).
      • Return an appropriate error message/code if the required permission is missing.
        See the OKAPI guide for a description of "permissionDesired"

      Acceptance criteria:

      • ModuleDescriptor is updated
      • Implementation is updated
      • Unit tests are updated (Since we're enforcing permissions in this case we can actually test this in unit tests)
      • API tests are updated

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Andrei_Makaranka Andrei Makaranka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: