Uploaded image for project: 'stripes-core'
  1. stripes-core
  2. STCOR-9

Icon permissions should work for UI modules in any namespace

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 2.0.0

    Description

      At present, the names of UI permissions needed to view the module icons are generated as follows:

            const name = entry.module.replace(/^@folio\//, '');
            const perm = `module.${name}.enabled`;
      

      This wrongly privileges the @folio namespace. Instead, we should discard any namespace from the front of the module-name – so that, for example, rch's new @rchr/amsl module will be guarded by the module.amsl.enabled permission. (See https://discuss.folio.org/t/how-to-add-my-own-stripes-module/935)

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mike Mike Taylor
                mike Mike Taylor
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h

                    TestRail: Runs

                      TestRail: Cases