Authorization screen is appeared when user without permission opens "eHoldings" plug-in

Description

Overview: Authorization screen appears when request to "/eholdings/access-types" endpoint is failed because user doesn't have needed permission at "New agreement line" page.
Steps to Reproduce:

  1. Log into Nolana BF FOLIO environment as User with the following permissions:
    Agreements: Edit agreements
    Agreements: Search & view agreements
    eHoldings: Can view providers, packages, titles detail records (may need to update list of permissions after this task will be done: )

  2. Go to "Agreements" app and open any "Agreement" record.

  3. Click on the "Agreement lines" accordion button.

  4. Click on the "Action" button and select the "New agreement line" option.

  5. Click on the "eHoldings" tab.

Expected Results: The "Link e-resource" button appears in "Link e-resource" element.
Actual Results: User is logged out. Authorization screen is appeared with the following message:""
Additional Information: See attached screencast
Interested parties: ,  

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko December 12, 2022 at 8:51 AM

Closing this issue as cannot reproduce.

Valery_Pilko December 12, 2022 at 8:47 AM
Edited

The issue was solved by this fix . Verified on Nolana environment.
See attached screencast:

The same scenario was also verified when user has the following permissions: 
1) Agreements: Edit agreements
2) Agreements: Search & view agreements
Actual result: the "eHoldings" toggle doesn't display.
Expected: the "eHoldings" toggle doesn't display.

Denys Bohdan November 21, 2022 at 12:07 PM

Hey , for some reason when requesting /access-types session expires and user is logged out. Could someone from BE take a look at it please?

Cannot Reproduce

Details

Assignee

Reporter

Priority

Development Team

Spitfire

RCA Group

Not a bug

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created November 18, 2022 at 11:24 AM
Updated January 5, 2023 at 11:05 PM
Resolved December 12, 2022 at 8:51 AM
TestRail: Cases
TestRail: Runs