Skip to content

[instruments] Not the same exactly behavior observed in the permissions "Access Profile: View Candidates and Timepoints - All Sites" vs role "Access Profile: View/Create Candidates and Timepoints - Own Sites" #7886

@racostas

Description

@racostas

Describe the bug
Not the same exactly behavior observed in the permissions "Access Profile: View Candidates and Timepoints - All Sites" vs role "Access Profile: View/Create Candidates and Timepoints - Own Sites"

Not sure if this is the expected behavior. Reporting it in case.
This two (role and permissions seem to address the same access - regarding its naming - with the difference the Access Profile: View/Create Candidates and Timepoints - Own Sites only will provide access to the own sites of the user and the Access Profile: View Candidates and Timepoints - All Site will do it for all sites.

The "issue" is that with the role "Access Profile: View/Create Candidates and Timepoints - Own Sites" the user is able to see the instruments for their candidates and with the permission Access Profile: View Candidates and Timepoints - All Site when and instruments is clicked it shows a Access Restricted message.

To Reproduce
(With a user with only role "Access Profile: View/Create Candidates and Timepoints - Own Sites")

Steps to reproduce the behavior (attach screenshots if applicable):

  1. Go to the candidate_list in the MainMenu
  2. Click on a PSCID to get to the timepoint_list module
  3. Click on a timepoint to get to the instrument_list module
  4. Click on any listed instrument
  5. The instrument is properly shown.
    (Now With a user with only the permission Access Profile: View Candidates and Timepoints - All Site)
  6. Repeat steps 1 to 5.
  7. And access restricted message is shown in place of the instruments.
    image

What did you expect to happen?
In step 7 the instrument to be shown.

Browser Environment (please complete the following information):

  • Microsoft Windows 10
  • Google Chrome Version 96.0.4664.45 (Official Build) (64-bit)

Server Environment (if known):

  • LORIS 24 official testing VM.

Metadata

Metadata

Assignees

Labels

24.0.0-bugsIssues or bug fix PRs that were raised during the testing of release 24.0.0Area: InstrumentsPR or issue related instrumentsCategory: BugPR or issue that aims to report or fix a bugModule: instrumentsPR or issue related to instruments moduleState: Discussion requiredPR or issue that requires the resolution of a discussion with the relevant parties to proceed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions